Fixed by r31939. I have verified that the generated client configuration file does no longer contain these tags and that it works as intended. Using cgitest.html I verified different configurations as well. Lastly I have also verified that the login, redirection, client verifier, and traceback pages works as expected.
Committed a few minor coding style changes, but this is ready for testing now.
Code review: changes looks fine - setting titles this way is easier to follow than earlier approach. Function test: generated HTML code has matching <html><body>, </body></html> tags, generated .tlclient does not. Great!