cli: add script to register hook

Could easily be extended to register a hook on more than one repo at a
time, looping over all repos editable by the given user, or taking in
a list.