Server setting transfer

This seems to compile in xbuild. There might be logic errors but it seems to make sense.