Moved connected = true to the event 'connect' rather than 'login'
Merge branch 'master' of https://github.com/JonnyD/Skynet