Expose MiddlewareStack#unshift to environment configuration.
Merge pull request #12479 from benpickles/unshift-middleware

Expose MiddlewareStack#unshift to environment configuration