Major changes to build.gradle configuration.

Now using Gradle 1.4RC2