Fix for histories and datasets with identical names

Access to histories and datasets with identical names previously failed with console logged error messages. This allows for that duplication by appending the history id to the history name, e.g.

- `Unnamed history-1cd8e2f6b131e891`
- `Unnamed history-ebfb8f50c6abde6d`

This can then be used to disambiguate between the two folders/files.

FYI: I'm working on support for read and write of datasets with any remote galaxy server, which is the reason for adding the server parameter. While that's not necessary in your case, it would work if you're on a shared filesystem and (for some crazy reason) had access to all of galaxy's datasets.