Moved the connection code to server_connections.cpp