Socket.io & Express 3 compatibility issues fixed

https://github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x#so
cketio-compatibility