Replaced the manual .gitignore with a comprehensive template.