Add .editorconfig file

Add config file for [EditorConfig](http://editorconfig.org). Really useful for standardizing the code format among collaborators/editors.

Feel free to update the file to match your preferences for this project. Right now it uses indentation with 2 spaces, utf-8 encoding, whitespace trimming…