Move LatestValidatedLedger code into ripple.util.