Added freeRTOS wrapper.

Implemented thread.
Added state_machine_demo project.