(PDB-457) - Update import/export/anonymization for v4 API

This involves adding supporting the new wire formats (with environments) and
adding anonymization for environments. This commit also adds full stack testing
of PuppetDB from within Clojure.
Merge pull request #916 from senior/ticket/master/pdb-457-import-export-environments

(PDB-457) - Update import/export/anonymization for v4 API
Add subqueries to events query endpoint
foo

Signed-off-by: Ken Barber <ken@bob.sh>
bar

Signed-off-by: Ken Barber <ken@bob.sh>