Moved yb::task_result functionality to yb::task.