This obsoletes the several tests and loose patches posted in thread
id:1354583824-10520-1-git-send-email-david@tethera.net
The main changes introduced here are caching, and some non-trivial
tags are used in the dump restore tests.
Caching now makes it sane to split the tests into several files, and
the output is tidied up a bit for the multi-file case.