Support stats aggregated by month

Adds partial (untested) support for daily aggregation.