hook: add RegisterRelation and RegisterConfig
Merge pull request #1 from rogpeppe/002-register-relations

hook: add RegisterRelation and RegisterConfig