Normalize line endings

Also adds the correct setting in a `.gitattributes` file