First version of statemachine example upload
First version of statemachine upload for master/slave