Task Query Improvements

Following the changes here: https://github.com/droolsjbpm/droolsjbpm-knowledge/pull/67

This is the initial work towards the improvement of the task queries and the task queries performance. There are a lot of things to improve but this PR represent the first working stage. Comments are appreciated.