Fix #2656 - Trailing slash on root.
Never include trailing slash on the root.
Avoid calling pushState with an empty url.
Merge pull request #2659 from braddunbar/trailing-root

Fix #2656 - Trailing slash on root.