Fix package.json's dependencies field
Refactor and reorganize lib for testing
Implement more rudimentary tests - this still doesn't prove this module works.

But it'll need to suffice.