Dev mpm optimization v0.38

Rebase dev-mpm-optimization-v0.36 to master.

The changes from using global PIDs to MPM local pattern indexes caused a merge problem. Fixed by hand.

Passes PR scripts:
https://buildbot.openinfosecfoundation.org/builders/ken-tilera/builds/59
https://buildbot.openinfosecfoundation.org/builders/ken-tilera-pcap/builds/65

Performance on Tile-Gx using ac-tile:
 default HOME_NET: -6.8%
 HOME_NET=any: +67.8%