init socket.io stuff