Reworked how GenerateDocumentation is invoked

Now you can enable/disable each of scaffolding, autodoc and gapdoc
invocations independently. Multiple other improvements. Also tweaked
parameters of CreateMainPage and CreateTitlePage.