Validation fixes

I'd recommend viewing each commit on its own, since the diffs are clearer and explanations are in the extended commit message :-)
Also, now that the external assets contain the hash in the filename, this should be redundant, right? The HTML shouldn't be cached at all itself, and if the hash in the filename of the JS/CSS changes we're forced to download the new versions.