Adding Reconnect for webSocket and SockKS

Adding auto-reconnection for webSocket and SockJS inspired by https://github.com/joewalnes/reconnecting-websocket, thanks to Wout for the coffeescript help!

No test because we don't really have a webclient test suite (yet), I guess we should write one using zombie or phantomejs one of these days.