Renamed ModalManager.registerDialog(). Added docs.