Add task running related logic.
Add task controller.
Merge pull request #8 from ivanzhaowy/master

Add task running related logic.