Fixes #8320 - shutdown shell provider threading fixed
Refs #8267 - pass template_url in call to foreman

Also passes the ?static parameter on correctly
Fixes #8210 - Adding caching for smart-proxy puppet classes using Stefan Julin's implementation of cache