MODE-2284 Changed the importer logic to handle replacing nodes that are referenced by nodes not affected by the import.
MODE-2286 Made it easier to use the ModeShape public API for queries
MODE-2286 Corrected processing of LIKE criteria with paths and SNS indexes

There are 2 changes:

1) The engine now internally alters the LIKE expression in a path comparison
to include a same-name-sibling index for all literal segments of the path.
For example, the path `/a/b/c_/d[%]` is converted to `/a[1]/b[1]/c_[1]/d[%]`,
while `/a/%/d[%]` is converted to `/a[1]/%/d[%]`. Obviously any segment that
already has a SNS index (literal or wildcard) is left alone.

2) When extracting from each row the left-hand values for the LIKE comparison,
same-name-sibling indexes are added to all segments.

These changes replace a slightly different technique that did not do #1 but
for #2 extracted the idiomatic path (with SNS indexes only where required)
and a second value with SNS indexes for all segments. This worked when the
LIKE expression specified SNS indexes (wildcard or literals) for all segments,
or when the LIKE expression had no SNS indexes at all. But this would not work
when the LIKE expression contained some segments with and others without SNS
indexes (e.g., `/a/b/c[%]`).

Several new tests validate the behavior, and no regressions were found.
Merge pull request #1226 from rhauch/mode-2286

MODE-2286 Corrects the processing of LIKE criteria with paths and SNS indexes
MODE-2286 Minor change to make recent change more efficient
Merge pull request #1227 from rhauch/mode-2286

MODE-2286 Minor change to make recent change more efficient
Corrected Java compiler warnings
MODE-2285 Corrected the index and index provider beahvior of the ModeShape subsystem for Wildfly

Several issues were fixed and tested.
Merge pull request #1225 from rhauch/mode-2284

MODE-2284 Changed the importer logic to handle replacing nodes that are referenced by nodes outside of the import scope
Merge pull request #1228 from rhauch/mode-2285

MODE-2285 Corrected the index and index provider beahvior of the ModeShape subsystem for Wildfly
MODE-2289 Moved the modeshape.common.util package from modeshape-jcr to modeshape-common. This was causing OSGI conflicts with the package with the same name from -common.
MODE-2290 Corrected use of indexes for criteria with aliases and bind variables

Corrected the way that indexes are planned for criteria that involve aliases and bind variables. Also added several new tests to verify the expected behavior.
Merge pull request #1233 from rhauch/mode-2290

MODE-2290 Corrected use of indexes for criteria with aliases and bind variables
Merge pull request #1232 from hchiorean/MODE-2289

MODE-2289 Moved the modeshape.common.util package from modeshape-jcr to modeshape-common.
MODE-2151 Added support for CHILDCOUNT dynamic operand

Pretty basic support that should prove quite useful in certain situations. This may be relatively
expensive when the repository has nodes with lots of children since it requires loading the parent
node's child references in order to obtain the count. The CHILDCOUNT criteria would therefore work
much better/faster as filtering criteria in a query that already defines criteria that indexes can
use.
Merge pull request #1230 from rhauch/mode-2151

MODE-2151 Added support for CHILDCOUNT dynamic operand and the 'mode:childCount' pseudocolumn
MODE-2292 Indexes and definitions are now properly persisted and work across repository restarts.
Merge pull request #1234 from rhauch/mode-2292

MODE-2292 Indexes and definitions are now properly persisted and work across restarts
MODE-2293 Removed MapDB as a separate module and changed it to be a local resource of the modeshape.main module.
MODE-2293 Added a missing journaling integration test for WF and also a delay for the LocalIndexProvider tests without which tests were failing locally for me (most likely due to the async nature of the index processing)