Add a .editorconfig and a .gitignore

To help the community to keep a clean repository, and a consistent coding styles.