Resolve links

Take a base URL, and a href URL, and resolve them
as a browser would for an anchor tag.