Define base-class for custom query classes.
Merge pull request #14 from 4teamwork/deif-task-query-rewrite

Define base-class for custom query classes.