JSA: extract _DETERMINE_CLASSES_ primitive

Extracted the create_suitable_frame subroutine from _COADD_JSA_TILES_
to form a new primitive.
JSA: add _COPY_JSA_HEADERS_TO_FITS_FILE_ primitive

This primitive is for adding suitable headers to FITS files` which
lack them.