20537 - Publish the PuppetDB discovery plugin

Improve how class search queries are implemented. Reduced the amount of
queries from 1 for each class to 1 query total.