Refactored code into functions, added ListOfAllManagedFolders

ListOfAllManagedFolders provides support for the custom service
"StorageCraft ImageManager Managed Folder List" service, included in
this commit