Add getwork/submitblock API for external miners
Created by: cyrozap
This was touched upon in #325 (closed), but I thought it might be good to make this a separate issue since it'll be easier to get an API for this working first than it'll be to implement an OpenCL miner.