add code quality harness and fixes

add gulp tasks for eslint:
```
gulp eslint
```
and jsbeautify
```
gulp js-beautify
```

Both are run by `npm test`

I also added a very basic test (not much to test in this module)

This should also be hooked up to travis.