Implements a more robust contact resource status update mechanism.
Manages resource add, remove and status change in the chat dialog. Adds
the resource in the tooltip of the chat contact when in an active chat
session.