Resolve after the success callback, to play nice with fetch.
Merge pull request #12 from christhomson/resolve-after-success

Resolve after the success callback, to play nice with fetch.