Multikey lua support, rank_lists_by_length, rank_sets_by_cardinality

Suport for complex (multikey) lua scripts and ranking scripts for ranking lists according to lenght and sets according to cardinality. Minor refactor of script handling by HotClient