Server selection logic changes

Now the API selects first works server with response timeout less then
$min_server_timeout (100 ms).