add recommended .gitattributes and line-ending changes