npm test => make test

Since there is a make file with config for testing, it makes sense to specify this in `package.json`.

The `Makefile` sets the mocha spec reporter, which I agree is much more readable than the dots. Still not sure why dots is default?!? Might as well take advantage of the better report for `npm test`.

Might also want to update the README accordingly?
add jshintrc and fix issues
simplify flow logic
Merge pull request #4 from fyockm/patch-1

npm test => make test
Merge pull request #5 from fyockm/patch-2

add jshintrc and fix issues
Merge pull request #6 from fyockm/patch-3

simplify flow logic