fixing finish failsafe timeout

- Move 25-sec timeout for stopBackgroundTask into onFetch, setting up
finish fail-safe when background thread starts.
- Call stopBackgroundTask right away when the javascript signals to
finish, using an NSTimer set to 0 instead.

Addresses problem discussed in #13.