Refactored main. Introduced GameHandler

* Now there are separate main files for the platforms
* Dropped main() for emscripten