Allow copying of HelpWriterContext.

It is now possible to create copies of HelpWriterContext.  The copies
share the same base state (output file, format and links).
This makes it possible to add support for customizing some aspects of
the substitution (done in a later commit).

Change-Id: I8af70ef35269edc5fd216728e8d962f4839ef29c