P2SH related RPC improvements

Some currently missing features like decoding a script and adding a specific P2SH redeemScript to the wallet.