Try to determine best available canonical url

@monken Something like this? (For https://github.com/CPAN-API/cpan-api/issues/296#issuecomment-34718405)