Pass settings.gradle to Gradel operations for Flat layout multiproject. Includes test.

Most of the changes are for the test project.
The core changes are in the GradleProject class. The rest is JUnit related changes.