added connection lost and reconnected events to web client fixes #9