Added partial support for relative urls + basic auth support