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

Public declarations moved to miner.h.