Symlinks and directory management improvements

   * Preserve symlinks  
   * Fixes directories management
      * Manage empty directories.
      * Preserve directories' attributes.
      * Preserve symlinks pointing to directories.
   * Fixes one unit tests

This work is part of https://github.com/endlessm/eos-shell/issues/2711