OAK-2198 - Add support for declaringNodeTypes to only index node with specific types

Minor refactoring of code

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1634814 13f79535-47bb-0310-9956-ffa450edef68
OAK-2005 - Use separate Lucene index for performing property related queries

Removing implemented TODOs
- Support native functions - OAK-2205
- Support for path restrictions - OAK-2211

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