Add a much needed .editorconfig
Make script consistently use 2 spaces,

* Do the same for tests
* Fix lint errors in test
* Do same in Gruntfile
* Set JSHint to lint tests
Merge branch 'le717/lint-errors'