Cleanup ripple::Ledger:
* Convert static member functions to free functions when possible
* Adopt consistent naming convention
* De-inline code
[FOLD] Cache indices known to be static