Add ".gitattributes" and convert newlines

This is a heads-up pull request. Will merge shortly.