Delete task by command

The task is removed together with related results. In addition to the
removal operation the change contains atomistic DB API method to
retrieve results of a task.

bp cli-task-improve

Change-Id: I58f10e28a8d12a63f903bb26b2ef464719ad8f0b