Modified framework to separate TaskFactories from TaskInstances
Added TaskServerBase
Changed default argument from main_task to foreground