Add more quality tests and metrics

Now running `npm test` will check with JSHint first. Also started to add test coverage metrics. Eventually those quality metrics should be displayed on the GitHub page. Also an EditorConfig file so that contributors don't have to think about the indentation etc.