kaplibs: New FTS functions copied from CONVERT to store CADC provenance

Functions for storing CADC provenance within a FITS file have been
created from the equivalent CONVERT functiuons, so that they can be used
by CUPID. CONVERT should probably be changed to use these new functions
to avoid code duplication.