Rewritten query tests to not use rewind-client
Rewritten query tests to not use rewind-client

I've also added additional tests to both test capped and non-capped
results.

All tests currently pass on Python > 2.7. Python 3 still fails.

[ci skip]

JensRantil/rewind