Started pagination. Implemented for ElasticSearch.
Make query return results with in the new pagination format
Paginate ResourceMap results