An express wrapper that enables generators to be used as middlewares