Restructure mgt_cli_callback(), and add comments to make it clear what's going on.  Also take care of a bug where strchr() was used on a non-NUL- terminated buffer.  This fixes #134.
Restructure mgt_cli_callback(), and add comments to make it clear what's
going on.  Also take care of a bug where strchr() was used on a non-NUL-
terminated buffer.  This fixes #134.


git-svn-id: 7d4b18ab7d176792635d6a7a77dd8cbbea8e8daa@1855 d4fa192b-c00b-0410-8231-f00ffab90ce4

ssm/pkg-varnish,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,CartoDB/Varnish-Cache,ssm/pkg-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,wikimedia/operations-debs-varnish,ssm/pkg-varnish