Add support for new 'procedure' definition

I chose name entity.name.bgscript to match the ‘event’ callback
definition.  Is this correct?