Working with presence

changes in connection dialog, xmls cleaning, start implementing presence