Add editorconfig.
Merge pull request #3452 from assertchris/add-editorconfig

Add editorconfig.