Re-split up task and event updating. Added support for YieldInstructions (WaitForSeconds, WaitForFixedUpdate, WaitForFrame) in Tasks.