Set up ctools modal for Edit forms.

From #5592.