publish and promote function related to cv now return tas_id.

So now it waits for task to complete only if synchronous=True and
returns a task_id.
Merge pull request #1540 from kbidarkar/fix-taskid

publish and promote function related to cv now return tas_id.