Ref #8304 - foreman engine for reverse proxy

* allows detection of Reverse Proxy feature on smart proxy
* serves templates with foreman_url correctly