CORE-5009 Refactored get-paths-in-folder.

Moved the private get-paths-in-folder functions from the donkey.services.filesystem.move and donkey.services.filesystem.trash namespaces into donkey.services.filesystem.directory as a public function.
CORE-5012 Added a /filesystem/download-contents endpoint.