Bug 424263 - Find file named and search files dialog can be opened at the same time - refactor the modal dialog manager from littlelib.js into dialog.js.