Add onOpenDialog and onCloseDialog javascript to admin.js

The refinerycms-page-images gem breaks without the wymeditor. I debugged the javascript, and it was missing the onOpenDialog and onCloseDialog routines. They were dragged along with the wymeditor extraction.

There are already init_modal_dialogs and similar javascript in admin.js.erb so I added them there.