Wiring up attachment downloads for event detail page and blog detail page.

Refactored this logic a bit and centralised it in a partial.