Revert "Still quite broken. Grr."

This reverts commit 70122323d807086dacef998b9f13aa5e1ac72a4c.
Revert "It broke :("

This reverts commit 06d8933c3aa82e47070f4221ce8eca96e0861c57.
Revert "Sitemap and html5 history mode."

This reverts commit cd4c57bb01559eb587486819f4b26091ac81c16a.