Fix ledger state persistence, add recovery for improperly persisted state
Fix ledger state persistence, add recovery for improperly persisted state

Auditors:
@bsclifton

luixxiul/browser-laptop,diasdavid/browser-laptop,diasdavid/browser-laptop,luixxiul/browser-laptop,diasdavid/browser-laptop,diasdavid/browser-laptop,luixxiul/browser-laptop,luixxiul/browser-laptop