getblocktemplate without a wallet

Combined #2917 (removed internal miner and GBT wallet dependencies) with #2901 (no wallet)