Update valid to accept system databases.

Such that _users and _replicator are not marked as illegal database
names. Also add design document support to the database compact code.
0.0.18