Fix RESTfulness of project hook deletions by API

Provides `hook_id` as part of the URL. Fixes #2878.