Move websocket code to its own module, move game.html script tag to its own script file, implement lobbies