Reworked servlet structure to use own Freemarker support servlet, as default appears
incompatible with Tomcat 8.
Output document is now correctly formatted XHTML.