Fixed download URL to allow downloading root

Also added unit tests for download URL generation
Do not send file list for select all on Download/delete

- When all files are selected, do not send the whole file list
- Download will trigger download for the parent folder, also works with
  root
- Delete will send "allfiles" to the server that will find the file list
  or the passed directory by itself