Add validation functions

Add validation functions from puppetlabs/stdlib to make sure we
actually receive the parameters we expect
Merge pull request #3 from Spredzy/add_validate_functions

Add validation functions