Add initial front end handling of question threads

@andy-armstrong, please review
In fact, I might want to put this in ems instead.