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.