minor improvement:
- remove unused SecurityProvider reference
- make other references private

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1604106 13f79535-47bb-0310-9956-ffa450edef68
OAK-1899 Ordered index fails with old index content

fixed the ArrayIndexOutOfBoundsException during the set of :next and
added log messages for easing future debugging.

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

added equals and hashCode in QueryIndex.OrderEntry
OAK-1717 Concurrent updates of ordered index in cluster may fail

plan for the ORDER BY clause
OAK-1717 Concurrent updates of ordered index in cluster may fail

intermediate commit for saving the work. WIP.