Added a dialog.ready(fn) function

The dialog.ready(fn) function is called after the DOM has been updated (at the point where dialog._isOpen is set to true). This allows DOM manipulation of the included HTML from the Controller.