Migrate initDialog from core.js to dialogs.js.
dialog: workaround jQuery.fn.bind bug by not using jQuery
Migrated some dialog options from core.js to dialogs.js
`dialog`: remove disfunctional attribute prepopulation
Lots of dialog windows code improvements