Support protocol independent wiki URLS.
Remove extra space in reference number.
Exclude some images from the generated PDF.
Make the header and footer respect the text alignment.
Remove unwanted whitespaces, remove normalization code which is no longer needed