Refactor Foreman::Renderer and HostTemplateHelpers into SafeRender

Tries to ensure all rendering of ERB goes through SafeRender, as well
as DRYing the foreman_url function. HostTemplateHelpers moved into SafeRender
as all methods are being called from there anyway.