[Fix] Editing dependencies are correctly graphed now

Fixes #36.

- Decoupled task dependency editing from actual tasks so that addPrevious and removePrevious can be invoked.