Dialog

Replaces #310.   Code to support popup's `orient: center` option for displaying a dialog.