[Bug 904235] Make data bucketing align to calendar

This makes the weekly bucketing start on Sundays and the monthly bucketing start on the first of any given month. Luckily, this was easier than I expected. I checked the KPI graphs and the KB history graphs, and they both handle the change just fine.

r?