Extract some code that is relative to task
Add task.h and task.c in order to save extracted code
Remove useless code
Extract code that is relative to command from kernel.c