Implement avg by request
Remove GROUP BY tags which are aggregated
Make aggregations chainable. Fixes #30.
Add avg_by in the template. Related to #30
Merge branch 'avgby'