Update to use the new PuppetDB v3 API

PuppetDB has released a new v3 version of its RESTful API. This commit
contains what's needed in order to make full use of that. It adds:

1. Order by and Paging to all methods that returns lists
2. New model elements for EventCount and AggergatedEventCount
3. Additional attributes to several model objects