RSS autodiscovery and some URL-handling helper functions