Implement the meta/stats API endpoint.

As a pre-req, also implement the first stats hook (archive-download).
So the return for nonexisting charm is 0 or error?