Make RPC::Ledger generic.
Move code out of namespace ripple::RPC::New.