Implement game tick for Web platform

This hooks up the game's update and render loop for the Web platform, using
window.setTimeout to drive the loop behaviour.

Currently it always renders red when the graphics device is cleared, but this
is temporary.