Relative-relative Resolution

This patch fixes resolution of one relative reference against another relative reference. That is, if the base URI is not absolute, the URI returned by `resolve` will also not be absolute.