OAK-593: Segment-based MK

Each new session starts a new SegmentWriter, so we need to keep the default memory use down. Use an automatically growing byte buffer to achieve that.

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1453336 13f79535-47bb-0310-9956-ffa450edef68
OAK-14 Identify and document changes in behaviour wrt. Jackrabbit 2

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