add onPresenceChange method

onPresenceChange is called when the presence status of a peer changes,
i.e. it goes online or offline or the IM presence is changed