OAK-593: Segment-based MK

Automatically scale file and cache size parameters to MBs.
Use MongoClient instead of the deprecated Mongo class.

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