Create automatic help and documentation.

Both are related. The help needs to flow from the relative classes and the documentation is just a pretty way of presenting the help. its a big chunck of code, so I'll sprinkle some comments to ease the review.
Lots of logic transfered to configuration.py