Add editorconfig and update CONTRIBUTING.md

Add editorconfig and update CONTRIBUTING.md

r? @karlcow @miketaylr