Use stdlib v4 instead of stdlibfeatures hack

stdlib 4.2.0 is backward compatible with 3.2.0 so this is safe, while it
also gives us the dirname() that we use.
Do not require rubygems as it is not needed
Support Puppet versions 3.5.1 and 3.6.0
Support Facter 2
Update licensing for 2014