(PUP-3512) Use new Profiler API

This PR modifies PuppetDB to use the new Puppet Profiler API instead of the old one, in preparation for the removal of the old API.