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.