The gateway now transmitts messages properly after the IdForCorrelation
refactoring. Closes #857