Re-implement the charm-event legacy API endpoint.

Only support what strictly required by "juju publish".
This is based on Jay's work.
Rather than duplicating the code from serveCharmInfo, perhaps
factor out the code to extract a digest into a separate function?