Use the promise constructor returned by gapi instead of the polyfill.
Merge branch 'promises'