Added basic map view and game view seperation.
Moved all functionality in seperated javascript files for improved readability.
Implemented basic map<->game switch logic and initialization.