First set of APIs

Tested and works.
Start task might be rewrite add the support of sending taskintance to taksinstance data.