Save metrics with zero-counts back to the DB
Add support for aggregate queries to the evaluator (LP #14366456)

Add support for aggregate queries to event evaluator, used for custom
reports.

By default, results are aggregated by user, and return the last event
for the user.

Custom aggregation queries can also be sent.
Merge branch 'pull-request/8'