Replaced TaskQuery Utility by SQLAlchemy task query class.

Dropped no longer used ITaskQuery utility and moved all queries, which are still in use, to the Task query
class.

Fixes #454. 

@deiferni