Add `.editorconfig` with some style guidelines.
This adds a configuration file for editorconfig. However, the set of directives is rather limited. It might be advisable to choose some other way to let editors know about clang-format rules (and others we may choose for documentation files, XML, JSON, etc.).