Beginning index refactoring (access index over API)
Refactoring to use an internal storage API
refactoring to use storage interface: bugfixes