Log at debug level when starting a protocol.
Add a simple benchmarking tool used for efficiency related tests.
Fix query mechanism emiting extra rows for the query views which use collation.

The document types of the collated document were added to the base
DOCUMENT_TYPES. Now this gets unmangled.
Merge branch 'master' into release-0.27.x