LocalStorage page caching fix.

When the user first uses the app, the local storage last page name is
now set to the initial page in GlobalSettings.
Added CasperJS tests!!!