Factor out code that manages communicating to the server

Chatview needs to be able to support multiple servers, and
my solution for that is for it to have an array of servers
that each will manage a connection and communicate
changes back and forth with the chat view.