Add some internal interfaces to task.

supports other classes implementation.
Implement task completion source
Implement dispatcher operation