Add default attribute and ignore files

Added .gitattributes and .gitignore according to default recommendations
from GitHub.