Fixed issue with doseq over deftests in the events tests
(PDB-454) - Added environment support for querying reports, events, event-counts and aggregate-event-counts

This commit has the last set of environment query API changes. Reports and events
both allowing environment in the query criteria and return environments in the result.
Event counts and aggregate event counts allow events in the query criteria.
Merge pull request #914 from senior/ticket/master/pdb-454-events-query-with-environments

(PDB-454) - Added environment support for querying reports, events, event-counts and aggregate-event-counts