Simplify fragment logic.

* #getPath/#getHash don't need to be stripped.
* Use #navigate where appropriate.
Merge pull request #3107 from braddunbar/spring-cleaning

Simplify fragment logic.