Adding .gitignore for Java based on https://github.com/github/gitignore/blob/master/Java.gitignore.