[2.0] Model boot improvements

 - compiler: Move model-sources cfg to models.json
 - executor: Split model boot into two phases
 - compiler: Sort models topologically

/to @ritch please review. This patch implements the changes we were discussing on Friday.
Amended.