add and run .editorconfig

http://editorconfig.org/
update JSHint setting
add another build optimized for CommonJS