TinyURL: Code cleanups and small bugfixes.

The code ported from C++ carried with it some C++ programming style, including
some poor variable names and usage, and consequent fragile code. Fixing all
that up mainly just means cleaner code, but it does also fix some lurking bugs
with the "url N" and "url c" one-arg variants.
TinyURL: Properly retain the URL list across updates