Major reworking of gb-average, gb-show and gb-new

A pretty solid working version of all three. Also the code is now better
organized and the three tools are consistent in style, design and
structure.