Add .gitignore file

Ignores JetBrains-, Java-, and OSX- generated output.