Additional dialog functionality

Additional dialog functionality


I've got a few changes that I made to ui.dialog.js that add the
following options:
autosizing to content
optional removal on close
close event handler
Should I post the diff to this list or to someone in particular?
Thanks for the great work!
Aaron