Payment Protocol: Improvements.

This implements the `none` pki_type, which is required by BIP-70 (though not very useful). It also exposes a function for certifcate chain verification on its own (which could be useful for even non-bitcoin-related projects), in addition it cleanups and refactoring.