Unignore .idea dir partially and add its content

This allows sharing of e.g. code style, which makes code formatting a lot more
useful. Some files within .idea are still ignored according to
https://intellij-support.jetbrains.com/entries/23393067.