Adding editorconfig and re-aligning code style with Modernizr

Fixes #8. 

Converts tabs to 2 spaces and adds editorconfig make sure you add the plugin to your favourite editor so it picks up the defaults.