Improved link support; added categories as well

`entry.link` now contains the `rel="canonical"` link if provided, else the `alternate`, else the first available link.