Move stake mining function wrapper definition to miner.cpp. Also, init NTP thread...