Promise: rectify the callback signature

It used to be given a resolver object, now it is given just the resolve
and reject functions.
Merge pull request #80 from Aintaer/master

Promise: rectify the callback signature