Added MarshalJSON to Vin and changed Vout.ScriptPubKey
Added MarshalJSON to Vin and changed Vout.ScriptPubKey

Added MarshalJSON method to Vin which properly omits the Vout field
from coinbase Vin's by using anonymous structs with the proper
subsets of fields outputted by bitcoind

Changed Vout.ScriptPubKey to add omitempty for ReqSigs and Addresses:
both fields are not shown when there is an error identifying to
scriptType or parsing addresses in bitcoind

glv2/ppcd,jrick/dcrd,btcsuitereleases/btcd,Dirbaio/btcd,ppcsuite/ppcd-old,cjepson/btcd,dajohi/btcd,runeaune/btcd,btcsuite/btcd,decred/dcrd,sysbot/btcjson,toddfries/btcd,ltcsuite/ltcd,pkothbauer/btcd,jongillham/btcd,wallclockbuilder/btcd,DanielKrawisz/btcd,decred/dcrd,jcmincke/dcrd,jcmincke/dcrd,dan-da/btcd,tb00/btcd,qchain/btcd,glv2/ppcd,hectorj/btcd,ppcsuite/ppcd,ppcsuite/ppcd,ppcsuite/ppcd-old,Stash-Crypto/btcd,hectorj/btcd,BitGo/prova,cqswxj2013/btcd,jimmysong/btcd,soapboxsys/ombfullnode,dan-da/btcd,stevenroose/btcd,tb00/btcd,mathiasrw/btcd,jrick/dcrd,mathiasrw/btcd,jrick/btcd,dajohi/btcd,jrick/btcd,CryptocurrencyCabal/htcd,BitGo/prova,Cleawing/btcd,runeaune/btcd,sysbot/btcjson,Roasbeef/btcd,cqswxj2013/btcd,jcmincke/dcrd,1d4Nf6/btcd,wallclockbuilder/btcd,Stash-Crypto/btcd,jimmysong/btcd,cjepson/btcd,btcsuitereleases/btcd,Roasbeef/btcd,adiabat/btcd,Dirbaio/btcd,danoctavian/btcd,pkothbauer/btcd,adiabat/btcd,dajohi/btcd,jongillham/btcd,1d4Nf6/btcd,davecgh/btcd,CryptocurrencyCabal/htcd,btcsuite/btcd,qchain/btcd,davecgh/btcd,jrick/btcd,Dirbaio/btcd,DanielKrawisz/btcd,danoctavian/btcd,Cleawing/btcd,ltcsuite/ltcd,aakselrod/btcd,aakselrod/btcd,soapboxsys/ombfullnode,toddfries/btcd,stevenroose/btcd