AppLayer cleanups v0.4

App Layer cleanups.

Prscript:
- PR build: https://buildbot.suricata-ids.org/builders/inliniac/builds/147
- PR pcaps: https://buildbot.suricata-ids.org/builders/inliniac-pcap/builds/67