Game ready close

- some overhauling on the shutdown and readying of game.js
- move out the connection details (websockets are for servers, not games :)
- remove bug with double module loads. 
- Fix tests
this would be a good place for the game to emit an 'end' or 'close' event. Unnecessary for now