gitolite-info command to separate func so can be used elsewhere

This is used by commands.gitolite_connect_ok but is also needed
by ddr-local webui.