Rewrites our existing tests into jasmine

This adds a dependency on the jasmine-node module. It makes more sense to
use a widely-used test framework rather than just rolling our own tests.