OAK-2270 - Resolve usage of ImmutableTree wrt OSGi constraints

Inlining the required classes for now

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