in REPL, show log before executing query

By changing the backend to produce the log outside the Task that
executes the query. If producing the plan becomes effect-ful at some
point, we’ll have to capture that separately.

Also now displaying the query time in the REPL.
Merge pull request #460 from mossprescott/wip/repl-early-output

in REPL, show log before executing query