initial pass at making puppet-candlepin work for hosted environment

This is the initial round of changes needed to get hosted candlepin standing. There are more changes coming, primarily around additional configurability of candlepin.conf. I am certainly open to suggestions if there are any improvements you might suggest.
As mentioned in my reply to your note about using lookupvar, I am having trouble getting the @ notation to work in the template. Sadly lookupvar needs to know an absolute location of the variable. It was my intention to come back and revisit as I don't like this either.