socket.io refactoring
Server: Implement socket.io in the main router instead of main app
Client: move socket.io to index.js