Middleware for Connect to allow arbitrary preprocessing (with streams!)