pushState before dispatch

Otherwise, window.location.pathname does not accurate representation current route upon dispatch
Merge pull request #104 from aaronshaf/master

pushState before dispatch