Fix router's root URL handling

When using `Ember.HistoryLocation`, the router does not account for the `rootURL` in 2 cases:

1. If the URL is typed manually (or page is refreshed)
2. In case `popstate` fires (for example when back and forward are clicked)

This fixes both cases.