Allow both toAddress and script for same output
Allow both toAddress and script for same output

Spin-off from this discussion: https://github.com/bitpay/bitcore-wallet-utils/pull/27#discussion-diff-36525967

If both toAddress and script specified, the latter will be actually used in output. Address will be used for display/info purposes (e.g. in Copay to display recipient).

bitjson/bitcore,bitjson/bitcore,nohea/alohacore-wallet-client,bitjson/bitcore,bitpay/bitcore-wallet-client,bitpay/bitcore,bitjson/bitcore,martindale/bitcore,martindale/bitcore,matiu/bitcore-wallet-client,dabura667/bitcore-wallet-client,troggy/bitcore-wallet-client,bitpay/bitcore,martindale/bitcore,bitpay/bitcore,bitpay/bitcore,martindale/bitcore