Made each task resubmitted work in its own pipeline
Dramatically lowered memory usage. Use json instead of jsonlib. Also don't store history in Redis.