add editorconfig

I've noticed a lot of whitespace diffs in PRs lately. [Editorconfig](editorconfig.org) will help us define and maintain a consistent coding style.

I don't have any strong feelings towards the style, just as long as there is one and it's followed.