WIP Local Storage

Rework on Local Repository to enable flushing. Added mapping
Not that it really matters, but wondering why we are are indexing on `storeSummary.length - 1` as well as the `id`?