Changes to modals.

-Renamed the modal module to dialog.
-Dialog info now kept in a more "private" field.
-Use dialog.close() to close a dialog.
-Internal renaming.
-Renamed isModalOpen to isOpen
-Renamed app.showModal to app.showDialog
-Fixed up samples.
Changed system.getObjectResolver to system.resolveObject.

This simplifies usage and implementation.