Fixed infinite loop in task_handler()

TASK_FAIL state doesn't exist any more.  Proper thing is to set task->error and
set state to TASK_COMPLETE.
client.c multiple string memleaks fixed.

This commit fixes multiple string leaks scattered across client.c
client.c multiple gobject memleaks fixed.

This commit fixes multiple gobject leaks scattered across client.c
client.c multiple ghashtable memleaks fixed.

This commit fixes multiple ghashtable leaks scattered across client.c
Fixed xmlXPathObjectPtr leak in parse_new_job()

recipe_node_ptrs should be freed after use.
Proper freeing of restraint client's AppData

This patch adds a function to properly free AppData at the end of client's
execution.
Proper cleanup of parsed arguments.

Clean up arguments parsed by glib's commandline option parser.