Fix puppet-lint errors and many warnings

This commit fixes all puppet-lint errors in core.pp and many
of the warnings as well.

Closes-Bug: #1210645
Merge pull request #192 from CiscoSystems/bugs/1210645

Fix puppet-lint errors and many warnings