restructures code and adds the stack used by NEW and SET, among other things

[git-p4: depot-paths = "//depot/openwatcom/": change = 37512]