This MR is a cleanup of HI global (mostly config realated). The next step would be to make it properly reentrant (rather easy but would need API adapration).
Tagging people who are listed in commits history: @angerami HI s/w coord: @stapiaar