Fix #559, make sitemap flat view work.

I've also added some `window.history.pushstate` support for some extra flare points