Update app to accomodate cordova.

Cordova is loaded differently in chrome mobile apps and breaks if we navigate away. For this we include the login page inside the app.