Set ng query group by when a query is loaded by id
Remove unused available filter setup method (twice)
Refactoring: Manage the query object within the query service


- Remove QueryService dependencies from the Query and Filter view models
- Move initialization of query object from work packages controller to query service
- augment filter objects with their meta data from available work package filters
- correctly wire up the filter type and model name in the angular templates
- add query and filter factories and tests
Fix a constant naming
Fix display sums when a query is loaded
Start writing query service tests
Add a TODO in the query service
Merge pull request #1104 from opf/fixes/angular-query-setup

Fixes/angular query setup