move gbr_perror() to a helper module

It's useful for both gbr core and subcommands.
move the remote_delta subcommand to a separate helper

This leaves gbr.c nothing but a bootstrapping argument-parsing
stub.