Added skeleton of an asynchronous state machine.

Signed-off-by: Janusz Sobczak <janusz.sobczak@mobica.com>