Fix various linting errors

* Fixes #26 in all scripts, hopefully for real this time
* Adds an standard [EditorConfig](http://editorconfig.org/) to keep consistent 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?