Add an .editorconfig file

http://editorconfig.org/

Like jshint (pr #73 and #98), this provides some ways to define coding style in an editor-independent fashion.