Move limting and skiping of results into class method

To speed up testing, the skiping and limiting of results
has been moved into a class method. Enabling testing of
the limiting and skipping code without excuting a full
query
There are included at build time correctly, it might just be an xcode/llvm bug i'm encountering while i'm editing files. I'll go remove the imports though