(#11331) Add vendoring of rgen to puppet

Follow on PR to https://github.com/puppetlabs/puppet/pull/1542 where the basic support is added.

(This PR contains the PR 1542 commit as well, don't know if that is correct or not).