Added changes to notify websocket listeners of alert dialogs.

This is ready to go...