Connect middleware for adding a random delay to responses