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.
Fix typo.
Merge pull request #3 from d2rk/refactor_executor

Refactor executor