Add Istanbul + Code Coverage [Closes #18]

`check-coverage` is run after all tests. If coverage is <100% then the build
will fail. Fixed up code to make sure that doesn't happen.

Also adds init.js for tests