The resolvePath function used by URL.ResolveReference doesn't cover all cases described
in the RFC 3986, and specially it fails to resolve some of the normal and abnormal
examples from sections 5.4.1 and 5.4.2 [1].
The code repository tip succeeds in some of these tests, but several still fail:
http://play.golang.org/p/F0ApSaXniv
[1] http://tools.ietf.org/html/rfc3986#section-5.4.1