Replaced querySelector() with children looping.

This is to make sure all new chats pushed into the chat window get pushed
into the overlay.

Renamed processNewChat into processNewChatMessages.
Removed usage of querySelector() in favor of manual looping.
Made sure we know what chats are already present when injecting the
overlay.