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.
Convert functions.txt to handle upgrades from within javascript and research.ini.
hackChangeMe() can no longer take -1, instead add new receiveAllEvents(bool) function
for that purpose. Campaign upgrades are not yet converted. All 'Power' settings in
ini files are changed, since they used meaningless values, to 'PowerLevel' with 0..2
values that correspond to button settings.
Account for the death of function.(cpp|h) and functiondef.h.

Also fix includes.