[#22] Create .gitattributes file

Automatically deal with line-endings as per
https://help.github.com/articles/dealing-with-line-endings

Fixes #22.
Merge pull request #908 from afuna/gitattributes-bug-22

[#22] Create .gitattributes file