added initial database implementation. made Game a singleton to avoid having to pass it around to all the scenes
don't allow overwriting the Game.current
added initialize and before_navigate notions to Scene. wrapped main.ts stuff in a module
passing state between scenes, but there's an ugly memory leak
fixed memory leak. don't like the pattern of having to sync local scene state with global game state, but may not be that big a deal in practice