Percentile ranks aggregation support

Closes #821
Merge pull request #923 from elasticsearch/feature/aggregations-percentile-ranks

Percentile ranks aggregation support