Move URL opening code into ShortUrl class