Authorization and handshaking

Elephant.io rocks!. I implemented socket.io Authorization https://github.com/LearnBoost/socket.io/wiki/Authorizing in my project and wanted to share my solution as a way of saying thank you :)