remove scattered globals in favor of a single object.
Merge pull request #7 from simshanith/bugs/71-socket.io

remove scattered globals in favor of a single object.