General purpose URL builder and manipulator.