update to conform to socket.io 1.0 and expressjs4