Added changes to notify websocket listeners of alert dialogs.  iOS only.

Now correctly sets up websockets for alert messages, and sets up long pulling, and used configuration options friendly to hosting providers.