Allow getwork result to be a bool or JSON object.
Allow getwork result to be a bool or JSON object.

The getwork command alters the output depending on whether or not the
optional data parameter was specified.  It is a JSON object when no data
was provided, and a boolean indicating whether a solution was found
when data was provided.

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