added buddy class for managing chat connection
change ConnectionManager to BuddyManager