Implement service announcements

Add new API to implement service announcements.
Fixes #1