Added use_dialog switch in c.raise_error_dialogs.  setting this to False is useful for testing.

Leo build: 20141111115252