Dev log api v3.2

Changes since https://github.com/inliniac/suricata/pull/775:
- cleanups

Prscript:
- PR build: https://buildbot.suricata-ids.org/builders/inliniac/builds/141
- PR pcaps: https://buildbot.suricata-ids.org/builders/inliniac-pcap/builds/61