Gradleize

Converting Ant to Gradle. Gradle build scripts have been added. The code has moved to conform to gradle's default sourcesets.