Use repository id in requests to hooks API

repo_path is left temporarily to allow smooth deployment. Will be
removed in next commit.