Dev log api v2.1

Changes since https://github.com/inliniac/suricata/pull/768:
- convert AlertDebuglog

Prscript:
- PR build: https://buildbot.suricata-ids.org/builders/inliniac/builds/132
- PR pcaps: https://buildbot.suricata-ids.org/builders/inliniac-pcap/builds/52