Query limits, logging & error handling

* Added support for query limits, offsets & sampling
* Changed how failures to get rate limit stats returns.  Instead of cascading a ValueError up, returning -1
* Added some very basic logging