Add support for non-local resources

Now supports HTML URIs with relative protocol (starts with `//example.com/image.png`), http:// and https://. This PR would resolve #7.