Integrated loading into Xflow states.
Changed internal and external listeners interfaces in Xflow + several fixes.