refactor TaskConfig to TaskBuilder

I also refactored the DummyTask to DummyMaster and DummySlave so that it is easy to reason what they do.
We now need to define how to handle the communication between nodes.