Resolve "Tuning task attributes"
Closes #342 (closed).
@baslijns could you have a look if this makes sense? It is easiest to look at the commits individually (there is one cleanup commit in between).
My example from #342 (closed) works now, but I haven't tested the parallel - can you suggest a minimal example for that?
Also closes #313 (closed); closes #311 (closed).