Connect/Express middleware to simulate latency for debugging