Tests for aggregation grid and fixes to the logic for date/time gridding. Updates to the documentation on date and time grids.