Improve heuristics for selecting a link URL.

Prefer type="text/html" links in atom feeds.

The atom package cannot parse the type attribute of link elements,
so add our own tweaked version at goapp/atom.