Define specs.
Stub out API methods.
Add @returns to docblock.
Implement logic for promise-like behaviour.