Websocket fixes
We need to port some of the Websocket fixes that was done in Bitshares
https://github.com/bitshares/bitshares-fc/pull/201/