Authorization and handshaking

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