Adds correct threading to messages by setting messageID and InReplyTo headers