Add .editorconfig to prevent code style issues

This pull-request simply helps contributors follow the basic code style (indenting, line endings, trailing whitespace, charset etc)

Based on editorconfig.org standard.