Implement the meta/stats API endpoint.

As a pre-req, also implement the first stats hook (archive-download).
The method is not even called for non-existing entities.
A not found is returned by the ResolveURL function passed to (and invoked by) the router.
0 is returned when there is no "archive-download" keys associated to the entity.