Add an .editorconfig file to help maintain a consistent coding style

This [EditorConfig](http://editorconfig.org/) file will help to better contribute to your project, and keep your coding style (indent with 2 spaces, trim trailing whitespace...).