Handle resolution scopes

@titanous 
Updated the logic to use [URL.ResolveReference](http://golang.org/pkg/net/url/#URL.ResolveReference) which uses the RFC referenced in the spec. This resolves it to `http://localhost:1234/folder`.