Refactor golodoc

Adds object for document elements (augmentations, structs) and clean the
code.

This should ease the named augmentations documentation generation (see #194).
just laziness I think. I'll refactor with composition, which with a little factory method could better generalize all this.