Use `setImmediate` in loop.

Closes #25.
Upgrade Cadence to 0.0.39

Closes #26.
Upgrade Strata to 0.0.22.

Closes #27.