Support for queries against resource events

This series of commits adds support for querying against resource events (from Puppet reports).  It supports all of the same basic constructs that we expose for resources and facts (with the exception of subqueries).  This includes equality, inequality (for timestamps), regular expressions, negation, and compound boolean queries.