Extract block mining functionality to a separate file
Switch basic APIs to JSON-RPC 1.0