Implement the ingestion log endpoints.

This will allow storing/retrieving ingestion logs.
To activate the functionality, a client branch is also
required.
Perhaps put the test for this first, to save the indent level in the reset of the function?