Fix for bouncing invalid sessions to login page.

Properly implemented socket.io authorization while maintaining express.io functionality. See this pull request https://github.com/techpines/express.io/pull/62

Cleaned up a few requirejs paths. Everything still works as before.