Refactoring messaging to automatically enlist XA sessions

[IMMUTANT-479]