Extendable promise API for nodejs