Fixing .gitignore to remove iml and intellij idea files.

Since iml are files, *.iml/ doesn't work as it looks for folders. I've also added a line to exclude .idea files.