Fix whitespace and line endings everywhere

The .gitattributes file should ensure that line endings stay nice.