Moves OutputType into its own module
- Move AddAndGetDestinationForScript from wallet to outputype module
Makes AddAndGetDestinationForScript use a generic CKeyStore rather than
the wallet, and makes it always add the script to the keystore, rather
than only adding related (redeem) scripts.
- segwit support for createmultisig RPC
- [tests] functional test for createmultisig RPC
This is a backport of Core PR13072
Depends on D4423