Consider correctly absolute url with //

This commit fixes #46
Better implementation of //foo url handling
Merge pull request #47 from Oxynum/patch-1

Consider correctly absolute url with //