Added more logging for websockets
Made the websocket object global to ease debugging
Fixed websocket listeners
Removed extreme debugging