fixed download link functionality

download links can now download multiple files, uses config.json to
specify download directory, saves files with correct filename