Changing countries in equipment window remembers last unit class selection
Temp fix for  defeat triggering on page reload due to unitialised scenario member
Code cleanup. Moved UI interface build function to a separate module (uibuilder.js)