more refactoring for presence selection. removed getTo, getFrom and getJid from Element