Rework logging API

Replace function by a macro to force lazy evaluation, add a trace level
only activated in debug builds.
Improve performance

The timediff is costly and should be avoided when not needed.
Add progress frequency in benchmark module

To avoid many update and test of the progress which drop the
performances especially when a small pcap file is repeated a lot, the
time need to be checked less often.
Add command line option to enable trace level
Rework logging API

Replace module name by section id in the C code.
Fix memory leak
Rework logging lua API
Update logging API in samples
Fix tests
Check for log in C instead of Lua

This is faster to do probably due to the current swig binding.
Add basic unit test for bitfield container
Fix code formating
Fix http error reporting
Fix log message

Update the rule reporting to match the new logging API.
Remove unused file
Add comments
Fix typo in code
Fix code formating
Add more checks in bitfield unit test
Improve logging macro