move remoting code to remote.cc

ClientAccepter is now Server's implementation detail and all socket logic
are isolated in remote.cc