Patched DownloadsController to work with external datastreams.

Fixes #1096.