doc: add new topic based help.

This uses mallard for topic based help as well as functional documentation
(API Reference). It includes inline examples, clean HTML formatting, and
manpage generation (this could still use a little incremental work though).

Automake fixes for installing manpages will be in a followup patch.