Update waf to version 1.7.13.
Start a series of technical tests. Plus a bunch of small fixes/tweaks.