Add editorconfig for consistent coding style

More info at http://editorconfig.org/

* The list of projects already using it to standardize their coding
styles[1].

* Inspired by editorconfig of django-model-utils[2].

[1]: http://git.io/pz1vWA
[2]: http://git.io/QIAWvw

Signed-off-by: Saurabh Kumar <thes.kumar@gmail.com>
Add .editorconfig to project template.

Signed-off-by: Saurabh Kumar <thes.kumar@gmail.com>