Added delete method to persistancestore
Some idl changes
Moving indexing logic into a separate module