questionnaire management: sorting

sorting pages and questions: php-part (partly)
* walk thru data and moveAsLastChildOf($parent)
* page numbers not yet update
* need to reload the preview