env: add r5js.Terminal interface.
env+repl+ui: simplify repl interfaces by using Promises.