Move Task and Result out of Executor and make them part of Pipeline.
Reuse new pipeline API and fix logging messages.
Reuse new pipeline API.