Move downloads functionality into a manager class.
Expose downloads and favers when viewing a package's JSON.
Merge remote-tracking branch 'ajshort/downloads'