Allow the Ledger to generically write to either Json model.
Move helper routines for JsonObject.
Make RPC::Ledger generic.
Move code out of namespace ripple::RPC::New.
Fix up variables in LedgerToJson