Add basic K2 storage framework implementation.

Due to the size of the commit, I'm submitting the unit tests in a separate request.
Since Java 1.5 does not appear to have a ThreadSafe annotation, I'll just mention it in the class Javadoc.