Added PaginatedQuery support.  resolves #73

Here is a stab at it (has not been thoroughly tested).  Feel free to change the API if you have better ideas. 
2 spaces instead of a `tab` would be a nice change.