Separate UI from Xmpp server comms
Fixes disconnecting and reconneting. Leave room before disc-ing.
Initial work at moveing to react for view management