Renamed resolve_to -> resolve

Also did a little refactor on the resolve method
Made callbacks run deferred.

This is for callbacks that are added when the promise is pending.