Properly generate Atom feed ids and self references