Add documents.json endpoint, and be more clever with stats recording
Move auth helpers.
Initial work on summarizing download stats.
all_stats minor refactoring
Pie chart for showing breakdown of downloads between documents.