Updated routes to include the user.

Removed the page scripts from the application and login now correctly
redirects to index rather than rendering the index view.