lua output v22.1

https://github.com/inliniac/suricata/pull/1067 with some cleanups