XD-1047: Add timeField and timeFormat to aggregatecounter

Allows the time bucket to be selected based on a field within the message.