Account for scheme-relative URLs

http://url.spec.whatwg.org/#concept-scheme-relative-url

I was hesitant to request a pull for this one as I'm not really sure about the code. Be sure to check it before pull :)