fix race condition between instance notification and xmpp status, refactors
fix race condition between instance notification and xmpp status, refactors

IveWong/uproxy,jpevarnek/uproxy,uProxy/uproxy,qida/uproxy,roceys/uproxy,uProxy/uproxy,jpevarnek/uproxy,IveWong/uproxy,itplanes/uproxy,jpevarnek/uproxy,dhkong88/uproxy,dhkong88/uproxy,chinarustin/uproxy,itplanes/uproxy,IveWong/uproxy,MinFu/uproxy,chinarustin/uproxy,roceys/uproxy,qida/uproxy,itplanes/uproxy,roceys/uproxy,uProxy/uproxy,qida/uproxy,MinFu/uproxy,uProxy/uproxy,dhkong88/uproxy,dhkong88/uproxy,MinFu/uproxy,MinFu/uproxy,jpevarnek/uproxy,dhkong88/uproxy,itplanes/uproxy,chinarustin/uproxy,roceys/uproxy,MinFu/uproxy,IveWong/uproxy,jpevarnek/uproxy,qida/uproxy,uProxy/uproxy,roceys/uproxy,itplanes/uproxy,chinarustin/uproxy,qida/uproxy,chinarustin/uproxy