mod_survey: make the question page easier to extend.

(cherry picked from commit b7aa24d70e9e227200bb7bdbe195a4f82a85deea)