Fixed socket.io stuff

I just wanted to make sure, that it will not behave any differently if the server you use is secure. Also, apparently superagent breaks if you have a self-signed certificate. It's still an open issue somewhere, but there is a temporary fix if you add: `process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;`