use SimpleTestClient class
move server guts into an STC function
turn methods into member functions, add run_server_testing
declar SampleTestClient class