Switched to hosted socket.io.js
Wrote ConnectState, rewrote socket.io connection code etc