A batch of fixes and small improvements:

    fix layout regression causing WDialog::show() not to work properly

    WPanel: also take into account maximum panel height

    remove the xhtml mime-type option, viva HTML5

    be robust when modal dialogs are not being created and destroyed as a stack (#1512, #2005)