Support relative, absolute, and full URLs

I've introduced a new setting: `URL_TYPE` which can take 3 values: rel (default; current behavior), abs (generate absolute URLs), full (generate URLs including the domain name).