Add a mock of cgminer.  Complete main features of mineguard.