Starting to add manifest features.
Do checking that a manifest appears valid.
Alter method for saving an upload so that we are able to
revert in the case where the manifest check fails - this
will probably also be useful in other situations where we
might want to restore a file after an upload.