aggregator: add support for capture groups

WARNING: this isn't (production) ready yet: memory usage will only
increase, not decrease.

Implemented dynamic invocations of aggregations to support regular
expression backmatches (capture groups) for issue #9.
This commit changes many things in the aggregator, because it changes
from compile-time configuration to run-time allocation of aggregation
buckets on demand.