Some early refactoring to support async miners better.
Some early refactoring to support async miners better.

LianaHus/mix,LefterisJP/mix,vaporry/mix,tomthebuzz/mix,vaporry/mix,LianaHus/mix,tomthebuzz/mix,chriseth/mix,LianaHus/mix,yann300/mix,chriseth/mix,LefterisJP/mix,tomthebuzz/mix,ethereum/mix,LefterisJP/mix,yann300/mix,ethereum/mix,vaporry/mix,ethereum/mix,yann300/mix,chriseth/mix