Problem: valgrind reports memleaks during selftest.

Solution: Plugged memleaks.
Also: Base doc and zproject wrapup.