s3:registry: move the reg_api prototypes to their own header.