link to long form object id in search results

keeps it consistent.

also don't be silly about image length (debug code got into master)
Set file extension on download

So that Windows knows what to do...

Requires Apache Tika
Merge remote-tracking branch 'origin/master' into hr-if-fixes
Merge pull request #288 from nla/hr-if-fixes

Few little bugs reported by Ingrid