Add in callback used from Microservices.

Ontime #1432
Contains the first two commits of https://github.com/DGI-USC/usc_mirc/pull/22
Plugin code which calls this is at https://github.com/DGI-USC/usc_mirc_microservices_plugin