Access discontinued parameters

I believe this is an oversight, plugins and nodes have an onadd property.

This property is old and was internally used for the feature: Allow node name to be auto-generated when added by knolleary · Pull Request #3478 · node-red/node-red · GitHub