Implement the meta/stats API endpoint.

As a pre-req, also implement the first stats hook (archive-download).
I believe we can do that. This is just a start and it only considers absolute downloads.
We can refine what stats look like later I guess.