Implemented Excel file downloads for every type of statistics report. Also did some bug fixes to the statistics totals in the JSON.