Promise: rectify the callback signature

It used to be given a resolver object, now it is given just the resolve
and reject functions.