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