Closes issue #823. This allows for clean unification of html docs and the in-terminal help text for scripts, including handling in core rather than on a per-script basis (see issue #947).