Adding back the abstract publish-gear-endpoint hook.

[merge]