Major revisions to application loading.

Changed the structure of application to have game/site object, navbar
with specific templates, and some other additions to switching.