MODE-2341 Fixed the moment at repository startup when the query manager should be marked as initialized and fixed the LocalIndexProvider scanning behavior when new index definitions are created for a workspace.
Merge pull request #1317 from hchiorean/MODE-2341

MODE-2341 Fixed the reindexing behavior
MODE-2346 Changed the logic around the selection of the indexes in the query plan. User-defined indexes should always have priority over the DescendantsByPath implicit index.
JcrTools authorization fix

 - Patch for findOrCreateChild to avoid getting ancestral nodes that aren't necessary for the current operation, because in ACL context AccessDeniedException would be thrown if the user doesn't have access to those ancestors.

- Created a test to verify lacking ancestor read permission does not prevent findOrCreateChild from creating nodes.
Merge pull request #1315 from mohideen/jcrtools-authorization-patch-2

MODE-2354 JcrTools authorization fix: patch for findOrCreateChild to avoid getting ancestral nodes that aren't necessary for the current operation, because in ACL context AccessDeniedException would be thrown if the user doesn't have access to those ancestors.
Merge pull request #1318 from hchiorean/MODE-2346

MODE-2346 Changed the logic around the selection of the indexes in the query plan.
MODE-2362: Fixes resource path limitation in Teiid ModelSequencer

* Use of relative paths, ie. ../, fails when Teiid ModelSequencer is used
  in an OSGI environment and resident in a jar archive.
MODE-2364 Changed the way the Infinspan listener approach is used when dealing with user transactions: instead of multiple listeners (which doesn't really scale), this approach uses 1 listener instance to handle all the different threads (transactions) and leverages the fact that we're using a ThreadLocal to store the active ModeShape transaction. Therefore, when notified, the listener should be able to tell if it's being notified for the tx associated with the current thread or not.
Merge pull request #1319 from phantomjinx/master

MODE-2362: Fixes resource path limitation in Teiid ModelSequencer
Merge pull request #1320 from hchiorean/MODE-2364

MODE-2364 Changed the way the Infinspan listener approach is used when dealing with user transactions:
MODE-2368

* Extends vdb sequencer functionality to support the processing of
  dynamic vdbs.

* The syntax of a dynamic vdb is identical to that of a container vdb's
  manifest hence the extension of the VdbSequencer by the
  VdbDynamicSequencer.

* Adds a twitter test that takes the declarative model as a dynamic vdb
  and sequences it accordingly.
Merge pull request #1321 from phantomjinx/master

MODE-2368 Extends vdb sequencer functionality to support the processing of dynamic vdbs.
MODE-2359 Fixed a bug in the logic of adding/removing referrers when the same property is changed multiple times.
Merge pull request #1322 from hchiorean/MODE-2359

MODE-2359 Fixed a bug in the logic of adding/removing referrers when the same property is changed multiple times.
MODE-2355 Fixed several indexing related issues:
- when constraint contains the OR operator and index should apply only if it applies to all the parts of the constraint
- the (cost * cardinality) formula should always be used when deciding which indexes to use
- when determining the node-type criteria for the index selection, always use only the less-specific node type (i.e. super-type)
Updated the utils script when attempting to use the `readline` package on Windows.
MODE-2372: throw a LabelExistsVersionException from addVersionLabel.
Merge pull request #1325 from mikedurbin/MODE-2372

MODE-2372: throw a LabelExistsVersionException from addVersionLabel.
Merge pull request #1323 from hchiorean/MODE-2355

MODE-2355 Fixed several indexing related issues
MODE-2357: Create and display node with custom types