Add the template copyright notice as a freemarker comment in all templates. The other header which will be inserted into the generated file is also present.  In readiness for various choices of generated file licence headers.
Update templates to handle generating either gpl 3.0 or lgpl 2.1 licence headers; update dtd to allow license selection attrtibute in nbpcg script