Tests infrastructure.

Two new test directives:
- save-db <name> <file>
- load-db <name> <file>

These two directives save the current database
in a dump file, and reload the database from
the dump file.