[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.
Yeah, that's coming from my C/C++ days where you would write `void foo(char * /*str*/)` to get rid of the compiler warnings.