fix bug 1048407: return url data with resultsets

* This is needed to eliminate the race condition where the url may not
be available when rendering these links.
* Use memcache to make this fast.