Refactor away RPCHandler::doRpcCommand
Refactor out a version of lookupLedger returning Status.
Add comments to RPCHandler.