eliminated TaskID and the function to find a task by id. replaced it with the TaskEnv variable.

allows reentrant task code to provide for multiple instances of a given
thread.
TaskID replaced with the environment variable TaskEnv
TaskID replaced with the environment variable TaskEnv
TaskID replaced with the environment variable TaskEnv
TaskID replaced with the environment variable TaskEnv
TaskID replaced with the environment variable TaskEnv