json encode list of files
remove debug output
create a meanigful file name if files are from the root folder
Merge pull request #2163 from owncloud/fix_file_download

json encode list of files