Add basic tests for promise.js.
Fix up tests and various imports.
Add jed as a dependency.