Correct vzps usage
Open execution log file descriptor on every write. #4378
Rename shell script to .sh extension.
Introducing lastseen_threaded_load.
Merge pull request #1696 from jimis/lastseen_deadlock-pushed

Lastseen threading-forking load test.
Rewrite transaction handling for LMDB.

The old transaction handling had numerous problems:

  1. It was slow, because we open a new transaction for every single
     read/write. Especially writes would cause fsync() which is very
     I/O intensive.

  2. It was not thread safe, due to the way that transactions were
     handled when using DBWriteNoCommit. The transaction was stored
     in a globally shared structure.

After the rewrite, we store a pthread key in the global structure
instead, and use Thread Local Storage to keep the transaction pointer.
This has the added advantage of reusing the same transaction for
cursors, which means that cursors and regular DB calls can now be
mixed in LMDB. However, the other DB backends may not support this,
so it's still not recommended.

Additionally changed wrong include style at top of file, and also
removed a few stubs from tests that are not needed anymore after
libutils is included in the test build.
Merge pull request #1690 from kacfengine/lmdb_txn_rewrite

Rewrite transaction handling for LMDB.
Introduce CF_ASSERT for debug builds.
Merge pull request #1695 from jimis/CF_ASSERT

CF_ASSERT
Rename write_txn to rw_txn to make its meaning clearer.
Remove migration support for LMDB
Remove proper files in acceptance tests initialisation.
Added two acceptance tests for digest copy: one if the file is there and is correct, and one if it's there but different.
Add acceptance tests for digest copy_from with server-side connection.ip expansion.
Just stylistic/performance changes, functionally same code.
Fix the MD5 protocol command.

Enforce proper access controls. Expand shortcuts in new protocol. Expand
special variables (ip, hostname, key) as well. Implement acceptance tests
checking them.
Merge pull request #1699 from jeffali/lmdb_no_mig

Remove migration support for LMDB
Merge pull request #1700 from jimis/shortcut_always_copies-4698

redmine 4698, 5638 and related tickets
Switch "make pluck" to grab from 3.7, since this branch is 3.7.
Regenerate plucked.cf.sub with "make pluck".