Show master foreman relations in work_queue_status.

1. added master link
2. catalog is queued only once
3. relations are shown with '->'
4. list of masters is adaptable to query
5. fixed a memory leak
6. resource header for masters
Lower the wq_wait() timeout to 5 seconds.
Add missing Python bindings for WQ4.0.
Add work_queue as a potential package
Moved work_queue_worker to work_queue
Moved work_queue_{status, simulator} to work_queue.
Introducing libwork_queue.a

link with:
-lwork_queue -ldttools

Since libraries are static, this order is important.
Batch interface library

I had to pull the batch interface to its own library. work_queue_pool is
now also in the batch_interface directory.

Link with:

-ldtools_batch -lwork_queue -ldttools

Since libraries are static, this order is important.
Fixed wq linking of all cctools apps
Add ignore files.
Fix the random worker selection algorithm to work correctly with WQ4.0.

(adding missing brace)