[#22] Create .gitattributes file

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

Fixes #22.