Fix requires for puppet 3.2.4

Migrate require statements to require_relative statements, conditionally declare constants, and migrate template variables to instance variables.

The require_relative statements fix errors in Puppet 3.2.x (thats all I''ve tested in).  Puppet is unable to find the files to load when using the "require 'puppet...'" statements.