Add support for new 'procedure' definition

I chose name entity.name.bgscript to match the ‘event’ callback
definition.  Is this correct?

I only changed the XML, should I change the JSON also or is that auto-generated?

This is my first pull request.  All criticism and corrections welcome.