remove expect global from jshintrc
some basic testing.
add npm test command. Tighten async version.
move lib/dispatcher to index. Make tests pass.