Add persistence of Event and EventIndex during device reboot.

Change-Id: Ic6c403a000a776eca2a3e9678c25862693a04c2e
Test: Built on device and unit tests.
Bug: 149356114
14 files changed