Allow a single worker process to manage multiple children

Rather than running N separate processes on a worker node to
process N simultaneous jobs, use a single parent worker process
which will poll for jobs and launch child process as needed up
to a maximum defined by conf value max_child_processes.

Includes a refactoring to clean up and separate the
single process and parent process worker code to eliminate
a lot of conditional code depending on configuration.

Also updated logging to be more consistent and to record worker
id, parent pid, and child pid (where applicable) to help with
tracing.
Alternatively, we could use these library functions to fetch the singal and exit status  https://docs.python.org/2/library/os.html#os.WTERMSIG
However, I'm not too particular if you want keep your cool-looking bit-shifting code around :)