Some initial misc. refactorings
Reindent network.js
Refactor the game-handling parts of runner.js into their own file

Also, add semicolons everywhere.