Add .gitignore and .gitattributes files for normalization

Caveat: this commit will make insignificant changes to many files to
normalize line endings and related things.