add a version detection helper
add a version detection helper

ES 1.0 adds a :query top level element to the count, validate, and
delete_by_query apis, so tests for those apis need to check which
version is running.

github/elastomer-client,github/elastomer-client