s3-registry: move regf based reg_api calls into own file.