Refs #526: Rewrite corrupted URLs on display.
Refs #526: Applying URL reconstruction to JSON view as well.
Merge pull request #529 from mapkyca/patch-broken-photos

Refs #526: Rewrite corrupted URLs on display.
Closes #548: Adding head() method
Merge pull request #549 from mapkyca/head-method

Closes #548: Adding head() method
Correcting htaccess.dist
Further improvements to .htaccess
Alias for delete

For better compatibility with MongoDB.

Fixes #542