Modal form cleanup

We repeat a lot of templating code in our forms. It makes sense to abstract
some of this repetitive logic and reduce the clutter. This patch give users
the ability to specify modal id, modal header, form id, and a submit url.

Change-Id: Ibcc270b189cf3f53065f163a325ebef07b875beb
Implements: blueprint form-template-to-view
Merge "Modal form cleanup"