Upgrade to socket.io 1.0 and don't hardcode localhost