CADC: add exception raising to LogCompat

tools4caom2.logger has the unexpected behavior that if you use it
to log a message with a log level of ERROR (or worse) then it
also raises an exception.  This commit adds the same functionality
to LogCompat so that it is a more suitable replacement.
CADC: add a TAP query to check a file is in CAOM-2
Action: add routine to clean output directories

This is to remove non-preview files from job output directories.
Although we should know that the files have been transferred and
ingested if the job is in the completed state, the routine checks
the files before deleting each job's output.
CADC: don't raise error if file in CAOM-2 > 1 time

Now only raise a warning (and return True, i.e. "the file is
ingested") if the number of CAOM-2 artifact records mentioning
a file is more than one.

Hopefully these multiple ingestions of files will be resolved
in due course.