Query API version 4

PuppetDB's query API can retrieve data objects from PuppetDB for use in other applications.