Dev log api v2.0

Changes since https://github.com/inliniac/suricata/pull/766:
- convert TLS logger as well

Prscript:
- PR build: https://buildbot.suricata-ids.org/builders/inliniac/builds/131                                                                                                                                                        
- PR pcaps: https://buildbot.suricata-ids.org/builders/inliniac-pcap/builds/51