Refs #969 - Proxy-side changes for serving templates from the proxy

An update to @GregSutcliffe's original PR (https://github.com/theforeman/smart-proxy/pull/100/files). Ports his original feature to the new plugin api.
Yeah, my confusion was the :foreman_url setting moving to the main settings file. Once I set that the rest of the code started working :)