Bug 725 connected back to true

this makes sure

* remote.online gets set to false and to true at the right time
* the widget state follows this
* remote.connected is not set to false unless we know we need to refresh the bearer token