This is a change in two parts. First some change question/question.php, so that if can work with question types can either use an old-style question editing form, or a new formslib style form.
Then convert each question type to use the new formslib style form.
(In 1.9, we will remove support for old style editing forms.)