refactored pagination for key, keys, and startkey
Merge pull request #251 from DavidZey/master_pag_fixes

refactored pagination for key, keys, and startkey