promisize (npm): Easily support both callbacks and promises in your js lib
Keywords: defer|promise|callback