RPC API to cgminer