Extracted localStorageHelper as a factory
List method changed back to directory. Now it returns the complete tree
from the specified path.