Added support for rel and alternates

I've updated collection.rb to parse rels and alternates, added a new example to the test suite, and modified existing test code so that it doesn't fail with the new output.

I've had to add some code to parse URLs in, so the parser can produce absolute URLs from relative links. I haven't integrated that into the existing code: it may be desirable to do so.