Gradle support + various other pull requests integrated.