Do not ignore media copy errors.
Add page.rooturl
Fix path generation on Windows systems.
No trailing slashes in root url.
Fix path handling.