waf: Add `valgrind` and `massif` targets.

Really useful at times where gdb just isn't enough.
Also yet to be implemented cleanly.