Stateless server

Server is now stateless
Client terminates if server crashes
Changed all NULLs to nullptrs