Updated interfaces to allow flow input data and return output data
Extracted methods to build several container definitions
Refactored state machine, its coordinator and factory to simplify dependencies and mutual correlation
Removed abstract state machine