cleanup code to pass puppet-lint and add the 'lint' rake target
fix gmond template namespace issues with puppet >= 3