MODE-2173 Fixed the checking of READ permissions for nodes retrieved from queries. This is a similar fix as the one from the 3.x branch, but it's not fully functional because the fact that the query result iterators rely on Batch & Sequence makes it impossible atm to correctly implement them taking into account JCR permissions.
Merge pull request #1118 from hchiorean/MODE-2173-master

MODE-2173-master Fixed the checking of READ permissions for nodes retrieved from queries.
MODE-2167 Fixed the calculations which determine the number of ACL changes for a given node, turning ACLs on or off.
Merge pull request #1119 from hchiorean/MODE-2167

MODE-2167 Fixed the calculations which determine the number of ACL changes for a given node, turning ACLs on or off.
MODE-2210 Enforce ACL checks in Session.getNodeByIdentifier and Session.getNodeByUUID.

Previously these methods were simply just looking up the nodes and not enforcing ACLs.
This change corrects that oversight, and ensures that only nodes for which the session
has read privilege (via normal permissions or ACLs) will be returned.

Because the path is not known at first, this change also refactors the session's
methods to check the permissions to no longer require a Path instance to be determined
prior to calling these methods. Instead, a `PathSupplier` can be provided when the path
is not yet known, and the supplier implementation should determine the path if needed.
This is important, because the path is not needed for normal role-based permissions checking
and is needed only when ACLs or custom authorization providers are used.

Conflicts:
	modeshape-jcr/src/main/java/org/modeshape/jcr/JcrWorkspace.java
Merge pull request #1120 from rhauch/mode-2210

MODE-2210 Enforce ACL checks in Session.getNodeByIdentifier and Session.getNodeByUUID.
MODE-2212 Create test case demonstrating failed persistence of generated namespaces
MODE-2212 Corrected the way the namespaces are read from storage to properly handle same-name-siblings (which are only used for generated namespace prefixes.
Merge pull request #1125 from rhauch/mode-2212

MODE-2212 Corrected the way namespaces are read from storage
Updated release notes for ModeShape 4.0.0.Alpha3.
Updated release script to handle recent changes in checkstyle configuration (which is now creating a 'target' directory that was not there before).
Updated release script to handle recent changes in checkstyle configuration (which is now creating a 'target' directory that was not there before).
MODE-2211 Changed the way ACLs are computed by moving the "read" part of the ACLs down to a CachedNode level and modifying the AccessControlManager to use that.
MODE-2211 Fixed various issues and indicated by the code review and also moved the "writing" of ACLs down to a cache level, via the MutableCachedNode.
Merge pull request #1122 from hchiorean/MODE-2211

MODE-2211 Changed the way ACLs are computed by moving both  the "read" and the "write" part of the ACLs down to a CachedNode level and modifying the AccessControlManager to use that.
MODE-2208 Added RBAC for ModeShape's root resource and sensitive security-related attributes.
Merge pull request #1127 from hchiorean/MODE-2208-wildfly

MODE-2208-wildfly Added RBAC for ModeShape's root resource and sensitive security-related attributes.
MODE-2214 Fixed JSON array parsing and corrected invalid files use throughout our tests.
Merge pull request #1130 from hchiorean/MODE-2214

MODE-2214 Fixed JSON array parsing and corrected invalid files use throughout our tests.
MODE-2217 Fixed the processing of the order of nodes when importing initial content.