Fix numerous regressions in automation and simplify the engine to host
communication...