Long-running api requests with rudimentary long-polling