add task clone api to C
add task clone api to python
declare `work_queue_file_clone` and `work_queue_file_list_clone` as static functions
Cosmetic changes.
Use xxmalloc() and xxstrdup().
Use correct args for malloc(). Fixes broken build.
Merge pull request #444 from dpandiar/badiclonetask

Clone task feature from Badi.