Add JSON-RPC support for use by BitcoinMonitor