Allow setting custom title

Allow setting custom title in the HTML output sent by the server. This allows better identification of the pages before they are processed by the JavaScript. (For example, if JavaScript fails for some reason.)