add support for a generic query
Merge pull request #9 from mbroadst/generic-query-support

add support for a generic query
add --check-leaks to mocha test runs
add istanbul for code coverage reporting
fixed existing tests to expand test coverage
added new test classes to improve test coverage