Add documentation for capacity factors

Also reword the distribution mode documentation a bit, and move the
grouping API to the distribution mode section.
ISPN-3740 AbstractCacheTest.getDefaultClusteredCacheConfig() should not disable state transfer
ISPN-3757 Update user documentation to refer to Infinispan 6.0 javadocs

Also replace some old references to http://java.sun.com which are now redirected to http://docs.oracle.com
ISPN-3757 Fix links to old javadocs
ISPN-3752 capacityFactor is not effective

Use correct capacityFactor from joiner.
ISPN-3752 capacityFactor is not effective

* Add a functional test for capacity factors
* Copy the capacityFactor in HashConfigurationBuilder.read()
ISPN-3756 Reincarnation should only happen for mortal entries
ISPN-3316 Avoid use of @Alternative for Infinispan components

* In CDI 1.0, alternative components cannot be injected in libraries
used by deployments. In other words, only components used by the app
directly can be switched with alternative.
* An alternative set of Cache*Interceptor classes have been developed
for use in managed environments, which indirectly use the
InjectedCacheResolver.
* Indirectly solved an issue where cache managers where being left
open in CDI/JCache integration tests. This was the result of
JCacheManager trying to stop cache managers for which it didn't
control lifecycle.
* Remove license headers from all source files that had them.
ISPN-3670 Any commands received before the initial topology is installed should block

Make StateProviderImpl block when it receives a StateRequestCommand before
it installed the initial topology.
Also, when a rebalance request is received before the join response, we should block it
until the joiner thread applies the initial topology (relevant only with awaitInitialTransfer
disabled).
ISPN-3448 Tests from org.infinispan.distribution.rehash package fail randomly

* NonTxStateTransferOverwritingValue2Test should block rebalance
  confirmations to avoid the retry of the user's put command.
* NonTxJoinerBecomingBackupOwnerTest should wait until the old owners
  collect the entries to send to the backup before doing the write,
  to avoid duplicate put commands on the joiner.
ISPN-3768 Upgrade to Apache Lucene v. 4.6.0