Rework ExpiringHash to use sorted sets and Lua for GC
It should be possible to rework the expiring hash code to use sorted set (in addition to the hash map) to avoid scanning the whole hash and unmarshaling each item to check if it has expired. We can use element score in the set for expiration time and sort by that.