Update for compatibility with Express 3.x and socket.io 0.9