node module: promise helpers (not really fit for public consumption, ymmv)