Add Sign.Transaction() helper, for transaction signing including P2SH

Signs pubkeyhash, multsig, p2sh.