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