presence: functions to keep presentity records in memory