Support for sites hosted in a subdirecotry

Adds config variable "url_subdir".

This is needed to generate site that is going to be placed not in the root of a web-server - keeps urls and files, media locations consistent.