Add `.gitattributes`.

This will avoid annoying diffs by normalizing line endings.
See https://help.github.com/articles/dealing-with-line-endings