Added workflows to folders

Added a new step applyWorkflows() that will add workflows to folders that use them.
Looking at this now looks wonky. Probably should have wrote it like this instead:

$workflowSettingsParams->identifier->type = $type;
$workflowSettingsParams->identifier->path = $path;

which is equivalent to the code above.