Gitignore iml files.
Added build directory and individual settings for each default. (untested).