add adapter for old (bad) relay; other refactorings
add 10-second test; other refactoring
add new server and allow for tracking the states of clients
try another test of clients with state