LDEV-77: The createWorkspaceFolderContent and deleteContentWithVersion calls were not working. The code logged into the content repository, but it had not set up an area in the content repository to create the files (i.e. it had not created the Workspace service's workspace) and it had not defined the credential with the repository. So the login to the repository failed.Added code to detect the "can't login" error and if it occurs, the code attempts to create the repository workspace and credential and then log in again.
Modified activites to be GROUPING_SUPPORT_OPTIONAL so that they would use the class grouping for a tool session, rather than a one individual per tool session.
deleteFolder method - it will delete all resources inside that folder (if user has permission to) . if resource inside that folder could not be deleted, it will return a flash message indicating which one could not be deleted.