Create server.cpp

C++ server implementation