Rework API to allow several scenarios, to avoid to use a Simulation object and to return JSON trees.