Move proof-of-stake miner and block creation to separate miner.cpp module.