Updated iawful for slight changes in Mdrunr API.

Also added unit test for iawful.
Fixed possible name conflicts when adding jobs.

Previously, submitting a job to the queue whose name clashed with an
existing job just resulted in the job being overwritten.

New jobs are now renamed to avoid conflict.