Code refactorings

hub is now private to the websocket package
log the client message