Reverse nested aggregation support

Closes #828
Merge pull request #939 from elasticsearch/feature/aggregations-reverse-nested

Reverse nested aggregation support