When calling this function onAfterWrite of a DO, the site theme was used to render the CMS form. This fix corrects that by restoring all the config options that are changed
This also changes getObjectsToExport() to getExportUrls() to allow extensions to provide plain text url's for Director::test().
Pushes the controller to dev/staticexporter as some framework install doesn't include default class routing.
The error-XXX.html pages generated in assets folder use the dynamic URL
so they can't be used on the frontend. Provide a copy of these in cache
folder during the publisher processing task.