Add a task to the stage.
1 task object
the task to add.
2 number stageID
the ID to insert the task into.