add getblocktemplate support to btcctl.