Fix App root buggy

When you set the app root, Pathjs must always strip it from its routing system (this makes it more usable). The history popState event is buggy because window.location.pathname is not always the right argument to pass to Path.dispatch if the app root has been set.