Move some code to generate a simulation from a scenario to openfisca-core. Follow changes in OpenFisca-Core.Other minor improvements.