App gets left deactivated after a hiccup because on reconnection, app_state was getting clobbered
Sometimes envoy would repeatedly try to activate/deactivate the same app when it was already in the desired state
Also, with this PR in place, @robbiecarlton and I were unable to reproduce that closing tab during sign up breaks other users on the same host.
This PR solves two bugs: