Added Gradle build script; fixed .gitignore