added rtos support with threads
added mail, priority and docking for the task system
Added functionality to task handler