Puppet: Adding tests and bringing puppet code up to date

Fixing places that still used the pre-1.0.0 runcible code and also writing
tests for the puppet code in Katello.
Merge pull request #2746 from daviddavis/temp/20130812120824

Puppet: Adding tests for puppet code