adding the conflict check to the UPDATE on cur and moving it up before
the INSERT to old. Should throw edit conflict instead of overwriting
a different revision.
and add support for showing the cached version of a page if unable to
contact the database.
Also add 'Vary: Accept-Encoding' to headers for every output, just to
make sure.