Moved all logging and dialog functionality to the new class MessagingUtils.