Fixes to globalMenu and router

- Added Origin.location
- Router allows only two routes
- Updated clear up of active views for globalMenu
- Fixed outdated code for Origin.currentLocation which is now an object
Fixed router to handle plugin routes
Fixed routes and added project controller
Updated router to allow authentication checks
Updated router and controllers

- dashboard, project and users now have controllers
Switched method around
Updated dashboard and globalMenu events

- Removed testing code too
Merge pull request #344 from adaptlearning/issue/#325

Issue/#325