Normalize file formatting

Ensure all files use soft tabs with an indent of 2.
Add a .editorconfig to define style.