Default is now to upload via Swift first, then register in MyTardis,
except for filenames with spaces, which can't be easily uploaded
using the Python swiftclient's "swift" command-line tool (but probably
could be uploaded by importing the swiftclient Python module instead).

MIME types are now set automatically for various known file extensions.

Some PEP-8 fixes (code layout, formatting etc.)