add medline source loading script.  This involves a couple of bugfixes in catflap and the addition of support for provenance