WIP: add support for summarizing by resource

1. Change `group-by` to `summarize-by`, hopefully avoiding
   some mental associations with SQL
2. Add support for grouping by resource (title + type combo).
3. Add validatoin for `summarize-by`; we now restrict to
   a hard-coded list of legal values (`certname`, `resource-class`,
   or `resource`).