Modified server connection handler

The server now responds to two different types of communication
requests. After the client connects to the server, a message must be
sent to the server containing the type of connection it wishes to
establish (spike solution for testing). Then the server can handle the
connection in one of two ways.