Submit KPI data when the dialog closes either in the interaction_iframe OR in the internal_api.

Only generate GUIDs for a KPI blob whenever needed:

* When the dialog is orphaned AND
* A staging event occurs without a confirmation event.