Add pool profitability monitoring w/ auto switching. Moved shared code to mining_commons. Added wafflepool monitoring. Lots of clean up