Introduce a timeout for agent requests

This fixes an issue where agents that are hanging for some reason will
end up blocking all work in the whole farm, because celery will not pick
up any more tasks.
Merge pull request #302 from guidow/agent_request_timeout

Introduce a timeout for agent requests