RSR-115 emit events in the java client

* Sets up a general framework that will allow events to be emitted by any client.
* Emits ack and stop events for session heartbeats.