Ass state machine with parallel control POC.

Add system activities library for new tests (web api)
Test persistence ok.