Fix styles and add .editorconfig file to set rules project-wide.