tasks: change state to running when worker takes task

Fixes #21