Add Gradle build files. Needs tweaking (and probably fixing).