Add gitattributes and fix line-endings