fixes #8606 - fixing puppet module index

root cause was rabl calling a repositories function which did not exist on
the ES item object that was being sent to the templates.  This change now takes
the ES item objects and transform them to katello objects. This should only affect
Package, Package Groups, and Puppet Modules
refs #8584 - foreman-gutterball and gutterball to comps
Merge pull request #4859 from jlsherrill/8606

fixes #8606 - fixing puppet module index
Merge pull request #4860 from komidore64/foreman-gutterball-comps

refs #8584 - foreman gutterball comps