Add (Abstract)DataQuery classes and corresponding tests

This should satisfy https://github.com/cbmi/avocado/issues/101.