PHP class for handling and manipulating URLs