Update .gitignore

Added ignores for Java, Windows, Linux and OS X.