messages/dialog: adjust lib to allow opening a dialog from a url (in order to comply with code review), fixes #4907, fixes #4878

git-svn-id: svn://develop.studip.de/studip/trunk@32019 c5b85792-5220-0410-ad23-ed5b6b8ad999