fixes #2539 - puppetrun API added.
fixes #2539 - added API puppetrun access permission and test