Initial server code.
Server code now working.