Scheduler state machine

A state machine of Contiki's scheduler