PR to merge Tom's stdout/error code but with provider splits

See https://github.com/fiddyspence/puppet-sysctl/pull/13 for the original PR which I hacked about