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.
Please merge the two files in a graceful manner. Use git mergetool (e.g. gvimdiff, kdiff, meld).