Avoid inheriting from Puppet::Resource
fixes #2539 - puppetrun API added.
fixes #2539 - added API puppetrun access permission and test