Added ability to cache temp_url_key. GitHub #221.

Also included the modified smoketest script that was left of of the random character function name change commit.