Small refactoring of Redis broker task consuming.
Small refactoring of Redis broker task consuming.

Refactoring of the Redis broker in preparation to use wrap task
processing in gourines to allow the worker to process multiple tasks
concurrently.

RichardKnop/machinery,denkhaus/machinery,RichardKnop/machinery,wizard580/machinery,mission-liao/machinery