Update index.js

add npm 'url' module.
add socket.req.session = new session.Session(socket.handshake, sessionID).