App Layer TX cleanup API v1.7

Patchset in preparation of option to disable detection module. Currently TX timeout depends on inspect_id handling, which is controlled by the detection engine.

This patchset adds a simple API for registering a function to handle the ID's. By default, the inspect and log id's are taken into account, where just like before, the log_id is only considered if a logger is enabled for that protocol.

Changes since https://github.com/inliniac/suricata/pull/756:
- rebase

Prscript:
- PR build: https://buildbot.suricata-ids.org/builders/inliniac/builds/124
- PR pcaps: https://buildbot.suricata-ids.org/builders/inliniac-pcap/builds/45