Fix elasticsearch handling of request just before exit
Fix check dependency to pthread

This break compilation on debian jessie.
Add rsync find in cmake
Improve pcap compare

If the comparison failed, this error was not caught during the tests.
Fix test run on Debian testing
Fix connection leak on lua error
Add memory usage dump and graph script

In Memcheck build, the memory level are dumped during haka execution.
Add mem report filtering for tests
Add weak lua ref

Add weak ref to fix memory leak.
Fix lua ref for negative index
Remove state machine finish on destroy

In Lua this is not possible due to the circular reference it creates.
The state machine needs to access the dissector but the dissector also
hold the state machine. As the ref has been changed to weak ref to avoid
memory leak, the dissector might not be available anymore.
Add debug log for connection release
Update test results
Improve memory info
Fix compilation on 32 bit system
Fix Lua weak ref

It is not possible to only have one table for weak ref as the garbage
collector might release some values which will then be reused by
another weak ref. Those duplicated ref will lead to corruption.
Fix state machine Lua ref issue

If the weak ref has been release, the state machine should not call the
Lua.
Fix test update script

The variable to disable Valgrind has changed.
Update test results
Add function to share logging code