increased safety of js_init

- simplified pg_worker, reduced # of js_init invocations
- added js_init flag
- freeze objects created by js_init
- remove js_init call from build_database install script
don't use concat for XM.Inventory options
removed old line
Issue #21757: Added MaintainProjectTypes priv
Merge branch 'master' into 21757
Revert "Merge pull request #1049 from jgunderson/21859-1"

This reverts commit a0373ec5312138e08c5fcd2c9ef81a819eac1d63, reversing
changes made to fd7d36f8c8c235a1ab97efcbf81b7d09f53639d0.
Revert "Merge pull request #1067 from shackbarth/unbilling"

This reverts commit 459a4f111ae8ae5ab67cc9c02a7a688d6b5f0085, reversing
changes made to 05a0dffc2b8c433c3452879fa36912e8198330df.
Merge pull request #1066 from tjwebb/login-fix-dogfood

tentative fix for dogfood "100 parameters" issue
Merge pull request #1070 from tjwebb/revert-pulls-1049-1067

Revert pulls 1049, 1067
add priv
revert nav changes
merge from master
Issue #21757: Commented out project types test until privilege is added by prep_database
21996
Merge pull request #1072 from lynnaloo/21757

21757 - Fixed priv issue with Project Types
21996
fixed breakage of single extension builds
Merge pull request #1073 from tjwebb/login-fix-dogfood

fixed breakage of single extension builds
21996
21996