(PUP-3322) Add debugging to appdmg provider

I was trying to install Scratch[1] using boxen[2]. The appdmg isn’t in
the expected format, so this failed. I had to poke around a bit to
understand why that was happening. This change captures that knowledge.

[1] http://scratch.mit.edu/scratch_1.4/
[2] https://boxen.github.com/
(maint) Correct Certificate Factory documentation

The existing certificate factory documentation incorrectly indicated
that it was responsible for actually signing certificates, which it is
not. In addition it specified a parameter as a raw
OpenSSL::X509::Request which it is actually the wrapped
Puppet::SSL::CertificateRequest.
(PUP-3393) Minor typo fix in relationship_spec.rb

There were a couple of typos relating to ALL_EVENTS in
relationship_spec.rb.
(PUP-2995) Move custom oid mapping file management to application/master.rb

* As suggested by @adrienthebo, custom oid management was moved to application/*.
* Custom oid management is only involved if `trusted_node_data` is activated.
(PUP-2995) Change custom OID format and apply code advices.

* As suggested by @ffrank, custom OID file format was changed to use Hash structure.
* Apply code modifications suggested by @ferventcoder.
(PUP-3433) Don't store autoload instances

Autoloader instances were being stored in the Autoload class instance,
but no code actually used the stored values. We can remove all of that
logic.
(PUP-3433) Remove method proxying methods

Why write a 3 line method when you can write a 12 line metaprogramming
method?
(PUP-3433) Remove invocations of Autoload with explicit wrap

In Kernel.load, the wrap argument defaults to false and it was never
possible to set it to true.
(PUP-3433) Tear out dead wrap code

In the class instance `@wrap` could never be true, and in instances
`@wrap` was never used.
(PUP-3201) Treat :undef as PNilType

For PUP-2857 :undef was changed from being a PNilType to a PRuntimeType.
This stopped the undef literal in the language from being able to be
assigned to Optional parameters. However, this only happened when the
undef was the default expression for the parameter.
Merge pull request #3194 from zaphod42/issue/stable/pup-3201-undef-not-working

(PUP-3201) Treat :undef as PNilType
(PUP-3244) Fixup test for windows and future parser

The test failed on windows nodes because the acceptance test wasn't
using the `puppet` method from beaker. The test failed on future parser
due to the bare file mode, in 4.0 only string modes will be allowed.

This commit fixes up those issues, and removes the
`acceptable_exit_codes => [0]` since that is the default behavior.
(PUP-3401) Fix type calculations of "all Patterns"

The type calculator did not correctly compute assignability for
a non parameterized Pattern. Such a Pattern is equal to "any string",
and is thus assignable from any other Pattern, Enum or String.

This was missing in the calculator and this resulted in Pattern neither
being equal to, less than, or greater than parameterized patterns.
(PUP-3357) generate implicit names for ssh_authorized_keys if needed

Generated resources from the user type share an empty resource name
if more than one unmanaged key has no comment in the authorized_keys
file (the comment is used for the namevar). This leads to duplicate
declaration errors when the user tries to purge those keys through
the user { purge_ssh_keys } parameter.

Make the provider use an internal pseudo-name in such cases. Generated
resources get the same respective pseudo-name for successful purging.
It is composed of the file name and a numeric index.
(PUP-3357) unit tests for the purging of multiple unnamed keys

Just makes sure that the user type and ssh_authorized_keys provider
generate pseudo-names for keys following the same pattern.
(PUP-3357) integration test for purging of unnamed ssh authorized keys

Add an integration test with an ssh keyfile in which two keys have no name
and make sure that both are successfully purged.
Merge branch 'external_trusted_oid_map' of github.com:ccin2p3/puppet into ccin2p3-external_trusted_oid_map
Merge pull request #3164 from ffrank/ticket/3.7.x/PUP-3357-purge-unnamed-ssh-keys

(PUP-3357) purge unnamed ssh keys
(maint) Change ParseError to Puppet::Error

The ParseError issued in oids.rb did not make use of ParseError's
ability to report file, position etc. Using the lower level
Puppet::Error instead which accepts message and optional original error.
Merge branch 'ccin2p3-external_trusted_oid_map'