lua output v24.0

Adds the keywords for output also to detection.

Replaces #1101 

Prscript:
- PR build: https://buildbot.openinfosecfoundation.org/builders/inliniac/builds/17
- PR pcaps: https://buildbot.openinfosecfoundation.org/builders/inliniac-pcap/builds/17