Adds path helpers (and specs) for downloading attachments.

Also refactored essence_file_view to use this path helper.