Merge pull request #6543 from pferraro/ejb-8.x

[8.x] Backport WFLY-3682 fix to 8.x
[WFLY-3348] Avoid spurious failures
[WFLY-3348] Close the input stream from domain deployment content additions

Conflicts:
	host-controller/src/main/java/org/jboss/as/domain/controller/operations/deployment/DeploymentUploadUtil.java
Merge pull request #6566 from bstansberry/WFLY-3348_8x

[WFLY-3348] Close the input stream from domain deployment content additions
WFLY-3695 Distributed web session expiration ScheduledExecutorService leaks threads on undeploy

Conflicts:
	clustering/ejb/infinispan/src/main/java/org/wildfly/clustering/ejb/infinispan/BeanExpirationScheduler.java
	clustering/ejb/infinispan/src/main/java/org/wildfly/clustering/ejb/infinispan/logging/InfinispanEjbLogger.java
	clustering/web/infinispan/src/main/java/org/wildfly/clustering/web/infinispan/logging/InfinispanWebLogger.java
	clustering/web/infinispan/src/main/java/org/wildfly/clustering/web/infinispan/session/SessionExpirationScheduler.java
Correct fix for WFLY-3682 which caused regressions in XPC PassivationTestCase.  Restores consolidation of nested batches.  Adds separate mechanism for resuming a batch.

Conflicts:
	clustering/ejb/infinispan/src/main/java/org/wildfly/clustering/ejb/infinispan/BeanEvictionContext.java
	clustering/ejb/infinispan/src/main/java/org/wildfly/clustering/ejb/infinispan/BeanEvictionScheduler.java
	clustering/ejb/infinispan/src/main/java/org/wildfly/clustering/ejb/infinispan/InfinispanBeanManager.java
	ejb3/src/main/java/org/jboss/as/ejb3/cache/distributable/DistributableCache.java
	ejb3/src/main/java/org/jboss/as/ejb3/cache/distributable/DistributableCacheFactoryService.java
Add sleep following start/stop/deploy/undeploy to help address timing issues with failover tests.
Add topology stabilization logic to tests that are timing sensitive to topology changes.

Conflicts:
	testsuite/integration/clust/src/test/java/org/jboss/as/test/clustering/cluster/session/persistence/SessionClusterDbPersistenceTestCase.java
	testsuite/integration/clust/src/test/java/org/jboss/as/test/clustering/cluster/web/CoarseWebFailoverTestCase.java
	testsuite/integration/clust/src/test/java/org/jboss/as/test/clustering/cluster/web/GranularWebFailoverTestCase.java
	testsuite/integration/clust/src/test/java/org/jboss/as/test/clustering/cluster/web/ReplicationForNegotiationAuthenticatorTestCase.java