Added .gitattributes

GitHub for Windows recommends this one, along with line ending changes.
Not entirely sure about the impacts, but it LGTM.