Downloads

* Move download count functionality into a manager class.
* Expose downloads and favers information in a package's JSON.

I didn't move the redis interaction in the stats compiler into the downloads mananger, since it was quite specific.