TS Gateway Messaging Support

Add support for TS Gateway messaging