SWC-475: direct download link. and take some code from commit e5f09a0f
apply to old objects too, from commit c4600230
Merge pull request #252 from jay-hodgson/SWC-475

Swc 475: support right click download of resource if single location path and no restrictions