Prepare looking glass for ESM
The "header" we add to every input needs access to Main. When porting to ESM, that will become a dynamic import, which are asynchronous.
Prepare for that by evaluating commands asynchronously, likewise for completions.