Implement the ingestion log endpoints.

This will allow storing/retrieving ingestion logs.
To activate the functionality, a client branch is also
required.
Agreed; this seems wrong, as this will be travelling on the wire.
I think we probably want *json.RawMessage here instead.