Add initial front end handling of question threads

@andy-armstrong, please review
This is pre-existing, so I'd rather not change it as part of this work.