Add EditorConfig to enforce spacing

Will automatically use the correct indenting and trim line endings on
supported IDEs.
Merge pull request #2105 from nschonni/add-editorconfig

Add EditorConfig to enforce spacing