Match image dowload URL to API endpoint URL

The UI used to use a different URL scheme for images which was different
from the endpoint used in the API but this has now been resolved so make
them match in the API output

Also fixes PUT requests to /:collection/:id/image to return unsupported
method.

For #84
Pretty print json in production