readding spawn.cpp, which was removed by accident
new constructor to embedded_server_socket that forwards socket's args