Dedicated class for retriving time-reports

Introduces the IQuery<T> interface.