Implement the meta/stats API endpoint.

As a pre-req, also implement the first stats hook (archive-download).
I think so. Note that this struct pre-existed, I just moved it to stats.go.