Improved persistence/reliability of kue operations with lua scripts.
Requires additional testing, not ready for production.