Refactor code

_add_recipe and _add_run_list are combined, _run_chef_client are
modified, and multi-thread code are put in a single function.

Change-Id: I12c2418546f366b484acc1258d10cc5b6554af8a