remove task selected as next running task
remove TASK_PERIOD_RESERVE

not used currently
use task_queue instead of state

to indicate which queue this task belong to,
to prevent adding one task into multiple queues
file cleaning