Include more info in the meta/stats endpoint.

The meta/stats endpoint returns aggregated downloads
count for the last day, week and month.
It also includes both the stats for the specific
entity revisions and the stats for all revisions of the
requested entity.
I don't think those are related, but a test documenting this is still useful, so I added that.
Thank you.