peerd: Don't use service tokens

Remove service tokens from the peerd API in favor of relying on a
combination of service IDs and remote DBus connection identifiers.

Also allow clients to call ExposeService on previously exposed services,
treating following calls as updates rather than errors.  This simplifies
client implementations dramatically by allowing them to be agnostic to
the previous state of their service.

To do this, expose the connection_name in libchromeos's
DBusServiceWatcher.

BUG=brillo:290
TEST=unittests, tendo_experimental suite passes against this change.
CQ-DEPEND=CL:252322

Change-Id: I5582223af4c4f54fd6ac7cdde89b28d02953b761
Reviewed-on: https://chromium-review.googlesource.com/252482
Tested-by: Christopher Wiley <wiley@chromium.org>
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Christopher Wiley <wiley@chromium.org>
1 file changed