Render the add group form in the template.

Rendering the form in the handler means it will output the javascript
controls, but those are needed by the dropbuttons, which occur earlier
in the page. More sensible JavaScript dependency management seems like
it would solve this issue, but that's beyond my skill level.