Adds support for pagination; closes #22
Adds tests for paginated results