Work on import/export.
Set EFFECTIVE-DATE when reading.
Put collection bookkeeping bits back into xdb.
Use keys when importing.
Save newly imported docs.
Fix merging artefacts.