Rewrote, basic the same logic but different names in the code and subtly simpler. Renamed package to request-domain-wrapper-middleware

Tested locally with API.