MODE-1944 Migrated ModeShape EAP kit to EAP 6.1.0.GA. This presented a number of challenges:
- RestEASY 2.3.6 excludes explicity a dependency required by resteasy-multipart-provider/apache.james. For this to work, it had to be re-added with the scope "runtime"
- Deploying exploded webapps does not work anymore (for whatever reason...). This means that our EAP kit had to be changed to provide packaged .war files for the web application. This brought forth several issues around the subsystem and the content of the wars which was fixed.
Changed EAP install script to executable
MODE-1942 Removed support for storing indexes in ISPN.
MODE-1945 Fixed the code which validated mandatory children of a node type, before saving a session.
MODE-1943 Implemented peer-to-peer indexing, based on processing of remote internal events. This mechanism will be triggered whenever a repository is clustered and indexing is not configured in clustered mode.
MODE-1913 Removed the CMIS webapp from the EAP xml configuration file. The web application will still be packaged & distributed, but will not start together with the subsystem.
MODE-1949 Fixed property & child node validation when removing mixins.
Corrected compiler warnings and JavaDoc errors.
Merge branch 'MODE-1949' of git://github.com/hchiorean/modeshape into hchiorean-MODE-1949
MODE-1901 Added support for obtaining the query plan without executing the query

There is a new 'explain' method in the ModeShape public query API that returns the internal
query plan for a given statement and language. This same functionality
is also exposed in the JDBC driver (as a custom method) and the RESTful
API (v2).
MODE-1950 - Updated the REST service so that mixins are removed only after properties & children have been processed. Also, implemented a type conversion mechanism so that JSON primitive types are correctly converted to JCR Values, as opposed to always being strings.
MODE-1948 Fix resource adapter shutdown procedure.

The resource adapter used to make 2 instance and close one which wasn't used
anyway. The code has only one engine now, and it is shut down when the resource
adapter's stop() method is called.

Make sure to wait until the shutdown is complete. Since the RA's stop() method
can be called from a shutdown hook, new background threads will be forcibly
halted before their work completes. When the shutdown takes more than 30 seconds,
log the time out exception.

This commit also adds some extra debug logging to know when the shutdown method
gets called.
MODE-1948 Changed logging to be more consistent with ModeShape patterns
MODE-1948 Fix / clean up I18n.

Make error I18n texts better fit the code they're supposed to log about,
clean up unused messages copied from elsewhere.

Add dependency on common tests classes to get I18n sanity test working.
MODE-1948 Initialize engine when requested by connection classes.
MODE-1946 Corrected WebDAV behavior when putting file with OS X

The OS X Finder application is used on OS X to mount a WebDAV service (e.g.,
a repository) as a networked drive. However, the behavior of Finder
is verbose in that it sends multiple PUT operations when copying a
single file into the WebDAV area. The first PUT has no content,
and is followed by a LOCK, a second PUT (with the content), and
and UNLOCK. ModeShape's WebDAV service was not expecting this pattern
and was not writing the second content.

The fix was relatively gross, since it entails OS-specific checks.
But it does work, and all tests do pass.
MODE-1651 JCR-specific exceptions are now translated into WebDAV exceptions

The corresponding WebDAV exceptions have the appropriate response status.
MODE-1919 Updated the IRestClient interface with 2 methods which allow to mark & unmark a folder as a publish area.
MODE-1919 Updated the ModeShape EAP kit, so that the "artifacts" repository contains a publish area named "files", below the root of the default workspace.
MODE-1951 Fixed the inclusion filter for the file system connector.