various maintenance

- trim trailing whitespace
- update editorconfig
- add npm test script
- remove coveralls token
update badges
boost test coverage to 100%
add npmignore