Implement the ingestion log endpoints.

This will allow storing/retrieving ingestion logs.
To activate the functionality, a client branch is also
required.
query := make(bson.D, 0, 2)

to save a little garbage?