Introduce theme hooks so that request forms can be built from data structures similar to drupal forms.