-bug fix on unregistering a web socket client from message service.
-cleaned up some unused methods and classes
-some additional work on db