refs #8432 - change foreman.url to proxy.url, support sending to proxy

1) rename foreman.url to proxy.url
2) add a parameter ```proxy.type``` (which should be set to ```proxy``` for smart proxy)
3) if ```proxy.type == 'proxy'``` then alter the url to smart proxy url.
I've edited the above comment with full pseudo code (untested :-)