TopicMessage should extend TextMessage

As discussed in #596