Rename the app to something generic
Don't hardcode the url store path, pull it from environment
Let the environment handle this package junk for us, don't code it!
Let a sane umask on the files that we write
We're running this at lzma.so, that really shouldn't be hardcoded config
Prettier HTML output. Use some tags, you slacker!!
Make a little page out of this thing so there's something to look at and do if you're just visiting
Pull the urls dir in as well
Clean up the code path for Just Visiting clients
Push the just-shortened URL into the browser's history

This improves the user experience by presenting the shortened URL in the
browser's location bar.  This means that it can be pulled to the
clipboard *really quickly* by issuing Ctrl-L then Ctrl-C, ready for
posting to Jabber/IRC/4chan.

We use a tiny bit of HTML5 Javascript to do it.  It's arguably better
than some janky JS or Flash trying to screw with the user's clipboard.
Add support for JSON-consuming clients

Our JSON is by no means compliance-assured, but it's so damn simple that
it's plenty good enough. This allows for simple robots and automation
scripts that just want a pretty URL.

Here's a really simple example for getting a short URL, which can be fed
to the clipboard and your window manager's Growl-alike popup notifier.

wget -q -O - --header='Accept: application/json' "http://lzma.so/?new_url=http://${YOUR_URL}" | python -c 'import json as j, fileinput as f; print j.loads("".join(f.input()))["url"]'