Adds .gitignore file, and removes ignored items.