added ignores for intellij, eclipse, maven and osx

To not commit settings for Eclipse or IntelliJ IDEA, compilation directory from Maven or trashed files on Mac OSX by accident I added a .gitignore file.