Make jsdebug window update globals only on user request. This makes UI
much easier to work with, and prevents massive slowdown when big globals
are continuously updated in display.
Upgrades: Convert repair and construction upgrades. Fix wall and building
hitpoint upgrades.
Upgrades: Convert (ie remove) wall function
Upgrades: Convert weapons from functions.txt to javascript system. Remove all
remaining traces of functions.txt code.