Use display:flex to resize textareas to fit dialog height

Drops a whole bunch of manual scripted element re-sizing (which has been
broken as often as not.)

When constructing the dialog, one simply sets class=flex on the main
dialog <div> and class=flexible on the immediate child of it that should
adapt to fit the height of the dialog.