jsoo: Refactor Main to make it easier to call the relevant parts from JS
jsoo: Refactor Main to make it easier to call the relevant parts from JS

A-Manning/FStar,A-Manning/FStar,A-Manning/FStar,FStarLang/FStar,FStarLang/FStar,FStarLang/FStar