Clean up gitignore and add rules for Idea.