Added getTitle() method which allows finding of correct title. If no title is
found, it returns a blank string.

Changed all other methods to use getTitle() to find titles for pages.

Made getSitemapHtml() accept a title parameter, this is due to the table of
contents requiring the exact same code as the sitemap.