peerd: Remove exposed services on death.

Package the logic to add and remove watches on the Bus into
a reuseable DBusServiceWatcher so that we can duplicate this effort
for requests to monitor technologies.

BUG=brillo:13
TEST=unittests, added a new unittest, and added an integration test
peerd_MonitorsDBusConnections.

Change-Id: I763e6ebce1b0fb78eaa49e733dab25287e33d684
Reviewed-on: https://chromium-review.googlesource.com/251152
Tested-by: Christopher Wiley <wiley@chromium.org>
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Christopher Wiley <wiley@chromium.org>
3 files changed