Move BucketsCollector.buildAggregations to Aggregator and add Aggregator.collectSubAggregators.

Additionally the terms aggregators don't have a collector anymore. Collection
logic has been moved to *TermsAggregator.collect.