Callout mediator improvements - Supporting Synapse Endpoints in callout mediator. Applying patches from SYNAPSE-966 SYNAPSE-967 and SYNAPSE-968