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
ill get one