Check if a server is up by polling with XMLHttp requests.