Update Url to generate unique codes

This does a simple base conversion to base 62 to generate the code.

The code feels a bit icky to me, so if anyone has suggestions, please do suggest.

/cc @joshk