Adds .gitignore file and removes ignored files from repo.