worker: Exclude the inputs which are received in previous requests.
worker: fix the input termination condition.

Disco is done sending inputs to the worker when it sends the worker
the "done" message with the input.  Otherwise, the worker should
keep requesting inputs.
Merge pull request #509 from pooya/more_input

More input