Paiwei mem check

fix two memory leaks in client.c and worker.c; add more decription in the examples; add description about signal handling and how to avoid libgearman hanging using set_timeout