added paging to all indexes
Merge pull request #37 from cloudant/paging

added paging to all index types, created utility function for paging. Fixed some formatting issues.