Put file hashes on new line in cache.manifest

Some browsers (Firefox) can't cope with comments on the same line as the
filename and request a file with a space in it breaking the offline cache.
Allow using the browser back button to undo

Use a location hash to create another history entry that allow us to detect
when the back button is pressed. This can then trigger an undo event.