Implemented core event loop system. Dots now run across the screen from it, and the worldstate gets updated on each tick, although with nothing useful yet.
Fixed issue where loop threw an uncaught exception and browser reconnected, spawning a new game loop again and again