Added changes to notify websocket listeners of alert dialogs.

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

Added an exmple socketio application in python.

Fixed package.json to be valid json

Added Android support for system dialog detection.