A short URL script derived from Phurl.