Add config.middleware.clear operation

This commit adds config.middleware.clear operation, which
removes all middlewares added to MiddlewareStack.

Related Issue: #13299