Refactored publisher endpoints to be listeners.

Also the application services are no longer listeners, and have passed
this role onto the endpoints.