Add EditorConfig file

Fixes inconsistent code style and adds EditorConfig file.