Added cache and storage abstractions.
Moved storage to subdir. Added storage size tracking.