Remove debug messages
Add the ability to bind to some session events

This is to allow server code to do custom logic
when some events occur, like a client connects
or disconnects or when a document is opened