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
Merge pull request #1066 from tjwebb/login-fix-dogfood

tentative fix for dogfood "100 parameters" issue