Like notices, the customparams, customdata, customtypedparams/data could be moved into the interface so that the interface initializes and updates them when these messages arrive from PG3.
This would relieve the node server of having to create globals for these and manage updates via the event handlers.