Added workflows to folders

Added function applyWorkflows() which loops through an array of workflows to be applied to folders.