Add Intellij IDEA and OS X files to gitignore.