Support for complex (multikey) lua scripts and minor refactor of lua han...

...dling.

Ranking methods for ranking lists according to length and sets according to size.