Truncate all limits to 1k max.

Added trucation and query tests
Merge pull request #143 from apigee/query-count-truncation

Truncate all limits to 1k max.