Implement TaskManager class and refactor dispersy.
Merge pull request #315 from whirm/task_manager

Implement TaskManager class and refactor dispersy