Closes #3547783
This adds the logic for keeping state and when to trigger aggregation and annual aggregation. It does not actually trigger any aggregation.