More theme and page system improvements. Started migrating user login form to route through hook_menu and drupalgap_get_form. Pretty unstable at this point, don't use.