  o Code simplification and refactoring:
    - Split the 600-line directory_handle_command_get function into
      separate functions for different URL types. Closes ticket 16698.
