Register callback for xmpp event listener before bringing up.

Change-Id: Ib168a3b0c780227cd5b63c864d5b61f7ef05ff21
Merge "Register callback for xmpp event listener before bringing up." into R1.10