OAK-527: permissions (wip, extend test cases, add issue reference to OAK-781)
OAK-813: add test illustrating the problem

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