Added download handler that calls downloadFile on server.