Fix brackets so all assertions are tested

Prior to this commit, the misplaced brackets caused only the first
assertion to be tested. This commit corrects the brackets, and now
all assertions are tested as intended.
Merge pull request #573 from shakedown/bug/master/broken-event-test

Fix brackets so all assertions are tested
Enable PuppetDB report processor when installing from source
Skip test if sqlite3 isn't installed
Extract constants for all command names
Updated store-report command to a multimethod

We will need to support multiple versions of the store-report
command for Burgundy since we're changing the wire format.

This commit simply re-works the existing store report command
to use a multimethod, and introduces v1 of the multimethod.
This commit does not introduce a v2 implementation of the
multimethod yet.
Introduce v2 of store-report command
(PE-959) Save resource event file/line properties

Prior to this commit, the file and line properties that exist on a
resource event were not being saved down to PuppetDB during report
processing. This commit changes that so we can show that information
in Burgundy.
WIP: add `resource-class` to events

Add `resource-class` to events table, add it to the event
query output, and add support for it as a queryable property
for events.
WIP: initial working implementation of POC event counts endpoint
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`).
WIP: Add support for aggregate counts
Add support for equality queries against event timestamp
HACK: temporary fixes for tests related to new `resource-class`
Basic support for "order by" via query parameter

Currently only applied to new `event-counts` endpoint, but
should work fine on any other endpoints with a small
change.
Add initial support for paged queries

Only used by new `event-counts` endpoint for now.
Initial implementation of `node-run-summary` endpoint
Updated example of storing containment path / class
WIP: fix two small bugs