Fix various linting errors

* Fixes #26 in all scripts, hopefully for real this time
* Adds an [EditorConfig](http://editorconfig.org/) to keep consist code formatting by contributors
* Minor lint and formatting errors in scripts

@gabceb Can you take a look at this or should I go ahead and merge this?