OAK-1522 - Provide PojoSR based RepositoryFactory implementation

Adding a testcase for TokenAuthentication with PreAuth

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1600595 13f79535-47bb-0310-9956-ffa450edef68
OAK-1522 - Provide PojoSR based RepositoryFactory implementation

Updated logic which copies the created token in commit

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1600601 13f79535-47bb-0310-9956-ffa450edef68
Merge branch 'upstream-trunk' into OAK-1717
OAK-1717 Concurrent updates of ordered index in cluster may fail

intermediate commit before refactoring
OAK-1717 Concurrent updates of ordered index in cluster may fail

intermediate commit after refactoring
OAK-1717 Concurrent updates of ordered index in cluster may fail

finalised the tokenising and encoding
OAK-1717 Concurrent updates of ordered index in cluster may fail

avoided a NPE in case of wrong index definition.
OAK-1717 Concurrent updates of ordered index in cluster may fail

initialised the slit property in the default index definition
OAK-1717 Concurrent updates of ordered index in cluster may fail

[trivia] small refactoring around constants and formatting
OAK-1717 Concurrent updates of ordered index in cluster may fail

intermiediate commit before switching to other topics