support storing data in directories, closes #2
all resources now stored under single hierarchy