Add .gitattributes to ensure correct line endings

Ref: https://help.github.com/articles/dealing-with-line-endings