Remove embedded CPU miner and eliminate wallet dependency for getblocktemplate

Built on top of #2905 (getwork removal), intended to complement #2901 (walletless node).