DEV: generalize model specification
This MR changes how models are specified and passed to the various jobs. Now the models are specified with a json (dictionary) format which are stored in the result meta data for follow up jobs.
(cherry picked from commit 63d6819d)