Improves the IM resource management: fall back to the bare ID when the remote resource contact has no activity for a while.
Merge branch 'xmppResourceTimeout'