Register callback for xmpp event listener before bringing up.

Change-Id: Ib168a3b0c780227cd5b63c864d5b61f7ef05ff21