Add .gitignore files to exclude IDEA files from versioning.