make measurement download redirect to s3 bucket.

Picks up some metadata changes from kixi.pipe too.
fix alignment, trailing parens &c.
Merge pull request #251 from MastodonC/feature/fix-measurements-download-as-file

make measurement download redirect to s3 bucket.
The s3 bucket policy.

We should have a system to automate creating this in the future.
Merge pull request #252 from MastodonC/feature/s3-configuration-backup

S3 configuration data  for the  s3 bucket policy.
Limit size of files uploaded via UI

Add filename to user metadata.
Use calculated max size.
Merge pull request #253 from MastodonC/feature/fix-upload-size

Limit size of files uploaded via UI
Fix display of images from s3 buckets.
let alignment.
remove debug logging.
use 'our' s3 bucket rather than old embed.
Updated photo migration for hecuba changes.
Tone down logging of stacktraces for parsing errors.
Make entities/update more robust.
Photo migration works.

Currently we delete the photos and migrate the ones where we actually
have the image.

TODO - Need to keep refs to non-existant images.
wip