[ServiceWorker, PushMessaging] Use ScriptPromiseResolverWithContext.

Use ScriptPromiseResolverWithContext instead of a pair of
ScriptPromiseResolver and NewScriptState.
This CL doen't change the behavior in many cases: The only exception
is when the resolution / rejection happens on the suspended or stopped
ExecutionContext. In such a case, ScriptPromiseResolver suspends or stops
resolution or rejection.

R=dominicc@chromium.org, mvanouwerkerk@chromium.org
TBR=mvanouwerkerk@chromium.org
BUG=352552

Review URL: https://codereview.chromium.org/236713003

git-svn-id: svn://svn.chromium.org/blink/trunk@172011 bbb929c8-8fbe-4397-9dbb-9b2b20218538