Updates to the attachment block

I think these are needed for the RC, sorry for the lateness

! add ids to the tags (img and link) which will help with addons in that area
! change from showing the filename download link to be the topic link, the file can still be downloaded by clicking on the thumbnail