GRADLE-2414 Different way how to pass userHomeDir to Distribution.

Keep DistributionFactory immutable and get userHomeDir used to install
Gradle distribution from connection parameters when creating tooling
classpath.