removed session.socket.io which wasn't compatible with socket.io 1.0 and replaced it with my own code