Remove dependency on Tests from TestClient

This involves duplicating PortsHelper and ClientApiLoggerBridge into the
test client directly, there's no point in taking a dependency for these
straightforward classes.