[preview, wip] lua output v15.2

Continuation of https://github.com/inliniac/suricata/pull/901. Now passes prscript and builds on OpenBSD and FreeBSD.

Prscript:
- PR build: https://buildbot.suricata-ids.org/builders/inliniac/builds/240
- PR pcaps: https://buildbot.suricata-ids.org/builders/inliniac-pcap/builds/160