Improve FmFolderService

- Better logging.
- Do not try to map directory name to folder id if the directory has
  no files.
- Made private the methods that are not used from outside.