Optional Disabling of Detection v2

Update of https://github.com/inliniac/suricata/pull/767, changing:
- better handling of case where protocol loggers are disabled
- improve configure test
- rebase

Prscript:
- PR build: https://buildbot.suricata-ids.org/builders/inliniac/builds/159
- PR pcaps: https://buildbot.suricata-ids.org/builders/inliniac-pcap/builds/79