reorganize lib and add better docs
reorganize tests
update readme
add makefile for running tests
update package.json
add index.js
new implementation of emitter
update tests and deps
update readme with new docs