MODE-1798 - Added explicit validation of the case when a preconfigured projection is created without an alias name or with an alias that ends in "/". Also, cleanup up a bit the code around preconfigured projections.
MODE-1800 - Added the node primary type as information to the newDocumentId() method, giving connector implementations an additional piece of information.
Corrected compiler errors and warnings.

This have accumulated over the last dozen or so commits.
Merge branch '3.1.x' of git://github.com/ModeShape/modeshape into MODE-1802

Conflicts:
	modeshape-jcr/src/test/java/org/modeshape/jcr/FederationConfigurationTest.java