Trigger the open with/save as dialog on download.

Fixes #2552, #1510, #1527

https://bugzilla.mozilla.org/show_bug.cgi?id=797288
https://bugzilla.mozilla.org/show_bug.cgi?id=767299