Handle menu chains outside of the config flags (HLT newJO)
This MR changes the way the menu chains are handled. They used to be part of the job flags which was suboptimal for several reasons. Now they are just put in a simple dict and passed between two functions.