Almost finalized logging

Logging is almost completed now.
The metadata column _file is now populated with the container id from
the metadata model.
Source to target is registered in the metadata model and counts for
inserts, updates, and deletes are stored.