Update agent and realm allocation (#1508)
* Update agent and realm allocation
Follows https://github.com/whatwg/html/pull/5411.
* Update docs/index.bs
* Update docs/index.bs
* agent/event loop
* Event loop and other ESO fixes
Co-authored-by: Jake Archibald <jaffathecake@gmail.com>