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
Merge pull request #127 from DeVonteApplewhite/master-forman-relationship

Show master foreman relations in work_queue_status.