see commit message.
dialog: remove setTimeout() in Dialog#render()
The displaying of the dialog is deferred by removing the hide class in
a setTimeout() call. A subsequent call to Dialog#show() might calculate
a wrong dialog width due to the deferred hide class removal.
dialog: remove duplicate show event in Dialog#show()
menu: improve slug generation in Menu#add()
This allows the use of html as text argument in Menu#add().