Add JSHinting and EditorConfig

- Add http://EditorConfig.org setting file for supported IDEs to use consistent indenting spacing
- Standardize indenting in JS files
- Add JSHint to devDependencies and run before `npm test` task