Add `.editorconfig` and `.gitattributes` files for automatic settings
This smoothens the contribtor experience by automatically configuring
editors that support EditorConfig.
The `.gitattributes` file ensures that all files use LF line endings
when committed to Git.