Fix line endings in repo

No code changes, just adding `.gitattributes` and normalizing line endings in the repo