Fix ISSUE-48208 Cleanup 2.50 UI related utility code
This cleanups the utility method still used in every old-style manual windows. It removed lots of obsolete code related to old 2.50 generated windows but keeps what is still needed today for legacy manual windows.
Notes:
- Wait for !466 (merged) to be merged
- WindowTabs constructor (conn,vars, int adProcessId) has last user in remove in there
Edited by Stefan Huehner