Add a gitignore for Java and IntelliJ files.
Remove files that should be ignored from index.
Make everything work in Gradle