Support .editorconfig.

http://editorconfig.org/
Fixes #677.