stops using express.io, fixed socketio authentication, refactoring