Implement the charm store logging API.

This will allow storing/retrieving ingestion logs.
To activate the functionality, a client branch is also
required.
We discussed about this on IRC, I am not sure about this change, but I was not able to convince you otherwise. So done.