'always_direct_download' flag for custom actions

Avoids the requirement of having an on-disk file for download responses,
by not using JSON status messages at all but sending any reply of the
custom action function to the download handler.