add validation of most parameters

Also added puppetlabs-stdlib as a dependency as parameter validation
depends on functions provided by it.