Fixed pagination and a map reduce issue 

Fixed issue with the pagination.
Removed code considering max per page parameter as map-reduce command limit parameter.