OAK-593: Segment-based MK

Adjust SegmentStore into a lower-level interface that SegmentWriter and -Reader could use.
Add a basic segment cache.

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1440395 13f79535-47bb-0310-9956-ffa450edef68