Adding .gitattributes and .gitignore files

This is in preparation for the migration to git.