Enable push state and urls with no #

Summary:
- Enable pushstate and update UI route to get served for other urls
- Capture clicks on links and avoid reload from server
- Wrap urls with handlebars helper to include base url and remove links to #
- Fix url collision on "Manage users"
- Fix baseurl and other url handling to work in subdirectories too

Test Plan:
- Load UI and navigate around watching URLs
- Check you can log in/out
- Check UI works when deployed to a subdir or with index.php in urls

Reviewers: dkobia, eyedol, shadowhand

Reviewed By: shadowhand

Maniphest Tasks: T348

Differential Revision: https://phabricator.ushahidi.com/D196