WIP Local Storage

Rework on Local Repository to enable flushing. Added mapping
How about we put this into a separate flush method like you did for summary? Additionally, maybe we should change this to a while loop. My thinking is if there is some sort or weird case where multiple details are coming in at once, this might allow for the store to keep growing and not be fully flushed out - currently its only removing 1 no matter how large the index is getting.