Add gitattributes and fix line-endings

See folks. THIS IS WHY WE ALWAYS ADD A .gitattributes FILE!