Add support and examples for createMiddlewareServer