Add getTopic and getAllTopics methods to broker.