Add editorconfig file.

http://editorconfig.org/

Stolen from bedrock.