Set class on modal buttons, to improve styling + testing
Test that only a single a button is shown on validation errors
Handle setting up events on different types of templates:

 - Experiment with using heredocs for templates.
 - Don't destroy modal on close, so various callbacks work. Also likely
   not needed.
 - Setup different events depending on the type of template.
Add FIXME, add comments