Embed JS stubs directly in library .cma.js files
This change leverages js_of_ocaml's --toplevel --include-runtime flags
(from PR #1509) to embed JS stubs directly into each library's compiled
JavaScript file, rather than requiring them to be bundled in the main
worker/toplevel.
Key changes:
- Add ~import_scripts parameter to Findlibish.require for configurable
JS loading
- Compile library archives with --toplevel --include-runtime --effects=cps
to embed stubs
- Add jsoo_runtime query function to Ocamlfind module
- Update test to use base library and verify stubs work at runtime
- Fix OCaml 5.4/opam 2.5 API compatibility issues
The stubs are now self-contained in each library file and automatically
registered on jsoo_runtime when the library is loaded via importScripts.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>