Replace custom package def with ensure_packages from stdlib

Also add dependency of puppetlabs/stdlib at least version 3.2.0

Looks like some extraneous whitespace got removed in this PR as well