Support stats aggregated by month

Adds partial support for daily aggregation. Daily works, but is not covered by tests yet.