hook: add RegisterRelation and RegisterConfig

This will give us information to allow us to generate metadata.yaml and config.yaml.