Major refactoring!

* Code organization
* Better separation of concerns
* etc.
Organizing my routes and socket.io code better.
This file is no longer needed on the server side after the refactoring.
No need to do this initialization here any more.
This require module needs to be organized a bit differently now.