Execute a JS bundle, serialize global state and side effects to a snapshot that can be quickly restored.