Release workers in wq_reset() instead of just cleaning them up. This is a short
term fix for bug #282.
Release workers when we disconnect from a master. This clears out the data in
the links and sockets and is a short term fix for bug #282.
Clarify the documentation for wq_reset().
Merge pull request #283 from dpandiar/cclmaster

Short-term fix for #282.
Fixes to previous commit.

- Unused variables.
- Missing prototype.
Send resources updates at least five seconds apart.
send_master_message now returns total bytes written.
Add list for completed tasks to be sent back to the master.
Send a single results available message.
worker sends completed tasks on "get_results".
Wait for result messages when receiving 'available_results'.