adding function to get a topic's text

Also put the plumbing in place to access topic text from  a DataDir.