Initial server and connection handler implementation